Skip to content

Commit 276fb04

Browse files
Pauli JarvinenPasi Pentikäinen
authored andcommitted
Fix window focusing problem in Symbian
The application window didn't receive focus properly on Symbian when minimized window was maximized. This was because the code first tried to set the focus and then made the window visible. However, invisible window doesn't accept focus, so the visibility should be set first and focus only after that. Not having focus properly set caused software input pane to fail to start in the Camera application, as was reported in the error case ou1cimx1#989756. Change-Id: Id659662e7d92205321746ed5a226843382a6ac89 Reviewed-by: Murray Read <[email protected]> Reviewed-by: Juha Kukkonen <[email protected]> Reviewed-by: Pasi Pentikäinen <[email protected]> (cherry picked from commit 8582f7c)
1 parent 6717de8 commit 276fb04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/kernel/qwidget_s60.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,8 +1203,8 @@ void QWidget::setWindowState(Qt::WindowStates newstate)
12031203
window->setFocusSafely(false);
12041204
window->MakeVisible(false);
12051205
} else if (window && oldstate & Qt::WindowMinimized) {
1206-
window->setFocusSafely(true);
12071206
window->MakeVisible(true);
1207+
window->setFocusSafely(true);
12081208
}
12091209

12101210
#ifdef Q_WS_S60

0 commit comments

Comments
 (0)