diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-05-26 08:14:33 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-05-26 08:14:33 +0200 |
commit | c1c23e47a74b585e7dce211d2416a4a80ba17f25 (patch) | |
tree | ef6a09a034f7fe2a8356a809434b76d54c8a5d06 /application/MainWindow.cpp | |
parent | 8fb5d4add3cbbd5a4c1d4cd32ddab67fda458afa (diff) | |
download | MultiMC-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.cpp | 7 |
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()) |