Skip to content

Commit

Permalink
Merge branch 'fix_qwindow_crash' into 'mer-5.6'
Browse files Browse the repository at this point in the history
[qtgui] fix crash when QWindow gets deleted. Fixes JB#42211

See merge request mer-core/qtbase!37
  • Loading branch information
pvuorela committed Jun 29, 2018
2 parents 11c8f00 + 9399340 commit 8c82d84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/kernel/qwindow.cpp
Expand Up @@ -203,6 +203,8 @@ QWindow::QWindow(QWindowPrivate &dd, QWindow *parent)
QWindow::~QWindow()
{
destroy();
if (QGuiApplicationPrivate::focus_window == this)
QGuiApplicationPrivate::focus_window = 0;
QGuiApplicationPrivate::window_list.removeAll(this);
if (!QGuiApplicationPrivate::is_app_closing)
QGuiApplicationPrivate::instance()->modalWindowList.removeOne(this);
Expand Down

0 comments on commit 8c82d84

Please sign in to comment.