From 897e22d912b1076fe900d3eb77a9558dc25df7aa Mon Sep 17 00:00:00 2001 From: humdingerb Date: Thu, 27 Jun 2024 13:29:31 +0000 Subject: [PATCH] Apply clang-format changes --- src/MainWindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);