diff options
-rw-r--r-- | src/dalstorage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dalstorage.cpp b/src/dalstorage.cpp index ca47c3f5..ca0cc417 100644 --- a/src/dalstorage.cpp +++ b/src/dalstorage.cpp @@ -350,22 +350,22 @@ DALStorage::flush(void) switch ((it->second).status) { case AS_NEW_ACCOUNT: _addAccount(it->first); + ++it; break; case AS_ACC_TO_UPDATE: _updAccount(it->first); + ++it; break; case AS_ACC_TO_DELETE: _delAccount(it->first); - mAccounts.erase(it); + mAccounts.erase(it++); break; default: break; } - - ++it; } } |