diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-10-05 14:17:04 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-10-05 14:17:04 -0400 |
| commit | c28d435ed41f9e693a0d7f09482a86b963fae6ff (patch) | |
| tree | e6402666b046b07171a8c3a9ed7df3c953dcf577 /src/mainwindow.cpp | |
| parent | 73556ad0845ee6dea2ec9f1fa50903de0448fa91 (diff) | |
showEvent() is called for stuff like minimizing and restoring the window, don't re-read settings for that
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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 |
