From c1c23e47a74b585e7dce211d2416a4a80ba17f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 26 May 2015 08:14:33 +0200 Subject: GH-1003 Fix settings dialog delays --- application/MainWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'application/MainWindow.cpp') 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(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()) -- cgit v1.2.3