From bd2eb9b978804ff509498244e863b80b0e0851b0 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Fri, 4 May 2018 14:22:53 +0300 Subject: Fix reset layout crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close the editor asynchronously to give things time to properly clean up. Task-number: QT3DS-1574 Change-Id: I2b4d25f84a7a852b32d821af56052334b6cbe485 Reviewed-by: Antti Määttä Reviewed-by: Mahmoud Badri Reviewed-by: Tomi Korpipää --- src/Authoring/Studio/MainFrm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3