summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index a8e2d206f..550fd386f 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -1522,8 +1522,13 @@ void MainWindow::setApplicationState(const QByteArray& state) {
if (!applicationState.keys().contains(state))
return;
+ if (currentApplicationState == state)
+ return;
+
+ currentApplicationState = state;
QList<int> topSize = ui.topSplitter->sizes();
QList<int> bottomSize = ui.bottomSplitter->sizes();
+
// yes, index is zero both times. please don't change it.
if (ui.topSplitter->count() >= 2) {
ui.topSplitter->widget(0)->setParent(NULL);