Permalink
Browse files

qmlui: on close ignore the event according to the doc state

This helps a bit #1129 but doesn't fix it completely
  • Loading branch information...
mcallegari committed Nov 26, 2018
1 parent a40dbba commit 22a87d30ee6d949b088b4a716777e976396dff20
Showing with 1 addition and 0 deletions.
  1. +1 −0 qmlui/app.cpp
@@ -284,6 +284,7 @@ bool App::event(QEvent *event)
if (m_doc->isModified())
{
QMetaObject::invokeMethod(rootObject(), "saveBeforeExit");
event->ignore();
return false;
}
}

0 comments on commit 22a87d3

Please sign in to comment.