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

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2016-08-11 21:40:38 +03:00
parent ec2597fe41
commit e226e3ce24

View File

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