From 42f6bef73859ba11b5787082ebde86f63e527b4b Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 19 Jan 2019 17:22:19 +0200 Subject: [PATCH] dont close settings windows with no reason --there were cases that the focusOutEvent from secondary config window was sent before the primary config window has become active. In that case all config windows were closing with no reason BUG: 402776 --- app/view/settings/secondaryconfigview.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/view/settings/secondaryconfigview.cpp b/app/view/settings/secondaryconfigview.cpp index c06de07d7..a72a72a8b 100644 --- a/app/view/settings/secondaryconfigview.cpp +++ b/app/view/settings/secondaryconfigview.cpp @@ -201,6 +201,10 @@ void SecondaryConfigView::syncGeometry() if (m_shellSurface) { m_shellSurface->setPosition(position); } + + //! after placement request to activate the main config window in order to avoid + //! rare cases of closing settings window from secondaryConfigView->focusOutEvent + m_parent->requestActivate(); } void SecondaryConfigView::syncSlideEffect()