Fixed issue #537. Valentina crashes when use undo command.

(grafted from b9726acb2bb6b7bd606d6ecc96e6498f093c1861)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-08-12 17:38:01 +03:00
parent 557368727b
commit a890ec47dd

View file

@ -2445,6 +2445,7 @@ void MainWindow::Clear()
qt_ntfs_permission_lookup--; // turn it off again
#endif /*Q_OS_WIN32*/
qApp->getUndoStack()->clear();
toolOptions->ClearPropertyBrowser();
toolOptions->itemClicked(nullptr);
}