Fix a bug with accounts modification
This commit is contained in:
@@ -364,8 +364,6 @@ void PreferencesPanel::OnAccountModified(wxGridEvent& event)
|
||||
|
||||
if (col == ACCOUNT_DEFAULT)
|
||||
{
|
||||
new_account.id = user->_accounts[row].id;
|
||||
|
||||
for (i=0; i<user->GetAccountsNumber(); i++)
|
||||
{
|
||||
if (i != row)
|
||||
@@ -379,8 +377,6 @@ void PreferencesPanel::OnAccountModified(wxGridEvent& event)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
_kiss->UpdateAccount(new_account);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -389,6 +385,7 @@ void PreferencesPanel::OnAccountModified(wxGridEvent& event)
|
||||
{
|
||||
new_account.id = user->_accounts[row].id;
|
||||
new_account.shared = user->_accounts[row].shared;
|
||||
new_account.is_owner = user->_accounts[row].is_owner;
|
||||
|
||||
if (col == ACCOUNT_DELETE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user