diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 53c3bc3..f7394df 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -287,11 +287,10 @@ MainWindow::MessageReceived(BMessage* msg) if (alert->Go() == 0) { int32 index = gDatabase.IndexOf(acc); - if (gDatabase.CountAccounts() < 2) { // deleting the last account + if (gDatabase.CountAccounts() < 2) { // deleting the last account gDatabase.SetCurrentAccount(-1); gDatabase.CurrentAccount()->SetCurrentTransaction(-1); - } - else if (index == 0) + } else if (index == 0) gDatabase.SetCurrentAccount(1); else if (index > 0) gDatabase.SetCurrentAccount(index - 1);