diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-05-04 14:22:53 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-05-07 06:26:55 +0000 |
commit | bd2eb9b978804ff509498244e863b80b0e0851b0 (patch) | |
tree | a8fb4b1c90336a87b9092939d4cb129b42850aa3 | |
parent | 2483119eaf6c7ab5ea620c2728a7022712103db1 (diff) |
Fix reset layout crash
Close the editor asynchronously to give things time to properly
clean up.
Task-number: QT3DS-1574
Change-Id: I2b4d25f84a7a852b32d821af56052334b6cbe485
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r-- | src/Authoring/Studio/MainFrm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Authoring/Studio/MainFrm.cpp b/src/Authoring/Studio/MainFrm.cpp index e0492d60..0aace15e 100644 --- a/src/Authoring/Studio/MainFrm.cpp +++ b/src/Authoring/Studio/MainFrm.cpp @@ -1506,7 +1506,7 @@ void CMainFrame::onViewResetLayout() settings.remove(stateKey); // Prevent saving geometry and state, and exit m_resettingLayout = true; - close(); + QTimer::singleShot(0, this, &CMainFrame::close); } } |