summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-05 14:17:04 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-10-05 14:17:04 -0400
commitc28d435ed41f9e693a0d7f09482a86b963fae6ff (patch)
treee6402666b046b07171a8c3a9ed7df3c953dcf577 /src/mainwindow.cpp
parent73556ad0845ee6dea2ec9f1fa50903de0448fa91 (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.cpp7
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