Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Cancel button on the Preferences form now works.
[xestiaab/.git] / source / frmPreferences.cpp
index 0244d49..b79f888 100644 (file)
@@ -102,7 +102,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 +150,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 +397,10 @@ void frmPreferences::SavePreferences(wxCommandEvent &event){
 
        this->Close();
 
+}
+
+void frmPreferences::CloseWindow(wxCommandEvent &event){
+
+       this->Close();
+
 }
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy