From 5926c1d62774ffa4e8157fa1cb7f4cc052294405 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 3 Aug 2015 21:33:14 +0100 Subject: [PATCH] Added conversion to integer when getting account names for the Preferences form. --- source/frmPreferences.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/frmPreferences.cpp b/source/frmPreferences.cpp index 0244d49..8c3149e 100644 --- a/source/frmPreferences.cpp +++ b/source/frmPreferences.cpp @@ -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.. -- 2.39.5