mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-09-19 15:24:03 +02:00
Fix crashing. Deleting QUndoStack can trigger QUndoStack::cleanChanged which will call LayoutWasSaved method after deleting VPMainWindow.
This commit is contained in:
parent
3c69641e18
commit
77631d9bd4
|
@ -450,7 +450,12 @@ VPMainWindow::VPMainWindow(VPCommandLinePtr cmd, QWidget *parent)
|
|||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VPMainWindow::~VPMainWindow() = default;
|
||||
VPMainWindow::~VPMainWindow()
|
||||
{
|
||||
// Preventing crash. Deleting QUndoStack can trigger QUndoStack::cleanChanged which will call LayoutWasSaved method
|
||||
// after deleting VPMainWindow.
|
||||
m_undoStack->blockSignals(true);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
auto VPMainWindow::CurrentFile() const -> QString
|
||||
|
|
Loading…
Reference in a new issue