calling close() causes the MDI view to get deleted as soon as possible while deleteLater() waits until the GUI is responsive

This commit is contained in:
wmayer
2017-07-17 11:11:58 +02:00
parent da2941943d
commit 234df4e661
2 changed files with 9 additions and 4 deletions

View File

@@ -1204,6 +1204,8 @@ bool Document::isLastView(void)
*/
bool Document::canClose ()
{
if (d->_isClosing)
return true;
if (!getDocument()->isClosable()) {
QMessageBox::warning(getActiveView(),
QObject::tr("Document not closable"),