From c28d435ed41f9e693a0d7f09482a86b963fae6ff Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Sat, 5 Oct 2019 14:17:04 -0400 Subject: showEvent() is called for stuff like minimizing and restoring the window, don't re-read settings for that --- src/mainwindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3b977dd6..76109e00 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1208,13 +1208,12 @@ void MainWindow::hookUpWindowTutorials() void MainWindow::showEvent(QShowEvent *event) { - readSettings(m_OrganizerCore.settings()); - - refreshFilters(); - QMainWindow::showEvent(event); if (!m_WasVisible) { + readSettings(m_OrganizerCore.settings()); + refreshFilters(); + // this needs to be connected here instead of in the constructor because the // actual changing of the stylesheet is done by MOApplication, which // connects its signal in runApplication() (in main.cpp), and that happens -- cgit v1.3.1