fix: initialize accountIsOnline to fix build

CMAKE_BUILD_TYPE=Release makes the build fail otherwise.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-07-03 14:32:01 +02:00
parent 5599b5a337
commit 278d2169da
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -257,7 +257,7 @@ void AccountListPage::updateButtonStates()
QModelIndexList selection = ui->listView->selectionModel()->selectedIndexes(); QModelIndexList selection = ui->listView->selectionModel()->selectedIndexes();
bool hasSelection = !selection.empty(); bool hasSelection = !selection.empty();
bool accountIsReady = false; bool accountIsReady = false;
bool accountIsOnline; bool accountIsOnline = false;
if (hasSelection) if (hasSelection)
{ {
QModelIndex selected = selection.first(); QModelIndex selected = selection.first();