summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-08-24 01:58:55 +0200
committerGitHub <noreply@github.com>2018-08-24 01:58:55 +0200
commit248afb9fa7bfd7da362a69892b3f0eac854299d4 (patch)
tree15ad60d7bbbe30711216cc8451ac6ea2bce9abbb /Source/Core/DolphinQt/MainWindow.cpp
parent398cce52bef55b59c5d018a1d83dd3b2c4739801 (diff)
parent77ebd721e33c423e7a0702b685c97eacbaa6dbf9 (diff)
Merge pull request #7347 from spycrab/qt_fix_visibility
Qt: Fix widgets being visible when they shouldn't be
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 3043479b84..56d68b5a30 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -159,6 +159,10 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters) : QMainW
restoreGeometry(settings.value(QStringLiteral("mainwindow/geometry")).toByteArray());
m_render_widget_geometry = settings.value(QStringLiteral("renderwidget/geometry")).toByteArray();
+
+ // Restoring of window states can sometimes go wrong, resulting in widgets being visible when they
+ // shouldn't be so we have to reapply all our rules afterwards.
+ Settings::Instance().RefreshWidgetVisibility();
}
MainWindow::~MainWindow()