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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user