From 278d2169da20f53f71d75925afea44ecbc23fdcf Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 3 Jul 2022 14:32:01 +0200 Subject: [PATCH] fix: initialize accountIsOnline to fix build CMAKE_BUILD_TYPE=Release makes the build fail otherwise. Signed-off-by: Sefa Eyeoglu --- launcher/ui/pages/global/AccountListPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/ui/pages/global/AccountListPage.cpp b/launcher/ui/pages/global/AccountListPage.cpp index f90ba863..a608771e 100644 --- a/launcher/ui/pages/global/AccountListPage.cpp +++ b/launcher/ui/pages/global/AccountListPage.cpp @@ -257,7 +257,7 @@ void AccountListPage::updateButtonStates() QModelIndexList selection = ui->listView->selectionModel()->selectedIndexes(); bool hasSelection = !selection.empty(); bool accountIsReady = false; - bool accountIsOnline; + bool accountIsOnline = false; if (hasSelection) { QModelIndex selected = selection.first();