summaryrefslogtreecommitdiffstats
path: root/application/MainWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-26 08:14:33 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-26 08:14:33 +0200
commitc1c23e47a74b585e7dce211d2416a4a80ba17f25 (patch)
treeef6a09a034f7fe2a8356a809434b76d54c8a5d06 /application/MainWindow.cpp
parent8fb5d4add3cbbd5a4c1d4cd32ddab67fda458afa (diff)
downloadMultiMC-c1c23e47a74b585e7dce211d2416a4a80ba17f25.tar
MultiMC-c1c23e47a74b585e7dce211d2416a4a80ba17f25.tar.gz
MultiMC-c1c23e47a74b585e7dce211d2416a4a80ba17f25.tar.lz
MultiMC-c1c23e47a74b585e7dce211d2416a4a80ba17f25.tar.xz
MultiMC-c1c23e47a74b585e7dce211d2416a4a80ba17f25.zip
GH-1003 Fix settings dialog delays
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r--application/MainWindow.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index 1409a924..6c5aa3af 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -1382,8 +1382,11 @@ void ShowPageDialog(T raw_provider, QWidget * parent, QString open_page = QStrin
auto provider = std::dynamic_pointer_cast<BasePageProvider>(raw_provider);
if(!provider)
return;
- PageDialog dlg(provider, open_page, parent);
- dlg.exec();
+ {
+ SettingsObject::Lock lock(MMC->settings());
+ PageDialog dlg(provider, open_page, parent);
+ dlg.exec();
+ }
}
void ShowInstancePageDialog(InstancePtr instance, QWidget * parent, QString open_page = QString())