From 210cd42395731dba433c8677384acb1062545970 Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Mon, 8 Jun 2020 23:26:02 +0200 Subject: Fix problems button not updating on startup in some cases. Mainwindow wasn't guaranteed to exist after first directory structure refresh was complete so there was no mainwindow slot triggered to check for problems. Added a proper problems check in the mainwindow constructor. --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index fc766af6..5dcfea1d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -325,7 +325,6 @@ MainWindow::MainWindow(Settings &settings ui->logList->setCore(m_OrganizerCore); - updateProblemsButton(); setupToolbar(); toggleMO2EndorseState(); @@ -520,6 +519,7 @@ MainWindow::MainWindow(Settings &settings QApplication::instance()->installEventFilter(this); + scheduleCheckForProblems(); refreshExecutablesList(); updatePinnedExecutables(); resetActionIcons(); -- cgit v1.3.1