X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2FfrmPreferences.cpp;h=9124004516a2b08003e9fc0c361cd0cc1e08445b;hb=a73019906500e3a0fc306a61e4b7975f79725866;hp=0244d497c111aec42c5dc3aa7f2c3976d072a229;hpb=45729fca56479bd9158486e0cda0c4a94b4dd1dc;p=xestiaab%2F.git diff --git a/source/frmPreferences.cpp b/source/frmPreferences.cpp index 0244d49..9124004 100644 --- a/source/frmPreferences.cpp +++ b/source/frmPreferences.cpp @@ -1,3 +1,21 @@ +// frmPreferences.cpp - Preferences form. +// +// (c) 2012-2015 Xestia Software Development. +// +// This file is part of Xestia Address Book. +// +// Xestia Address Book is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by the +// Free Software Foundation, version 3 of the license. +// +// Xestia Address Book is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with Xestia Address Book. If not, see + #include "frmPreferences.h" #include "frmEditAccount.h" #include "frmNewAccount.h" @@ -102,7 +120,7 @@ void frmPreferences::ModifyABAccount( wxCommandEvent& event ) wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); - AccName = preferences->accounts.GetAccountName(lstAccountsIndex); + AccName = preferences->accounts.GetAccountName((int)lstAccountsIndex); frmEditAccount *frameEditAccount = new frmEditAccount ( this ); frameEditAccount->LoadPointers(cfgfile); @@ -150,7 +168,7 @@ void frmPreferences::DeleteABAccount( wxCommandEvent& event ) wxFileConfig *cfgfile = new wxFileConfig("", "", AccFilename); - AccName = preferences->accounts.GetAccountName(lstAccountsIndex); + AccName = preferences->accounts.GetAccountName((int)lstAccountsIndex); // Get the account directory name and account type.. @@ -397,4 +415,10 @@ void frmPreferences::SavePreferences(wxCommandEvent &event){ this->Close(); +} + +void frmPreferences::CloseWindow(wxCommandEvent &event){ + + this->Close(); + } \ No newline at end of file