Skip to content

Commit

Permalink
Apply clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
humdingerb authored and github-actions[bot] committed Jun 27, 2024
1 parent a9ff87e commit 897e22d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 897e22d

Please sign in to comment.