Fixed issue #454. Crash: using CRTL+Z while using line tool.
--HG-- branch : release
This commit is contained in:
parent
3f67f77658
commit
86acf37482
|
@ -1,4 +1,5 @@
|
|||
# Version 0.4.3
|
||||
- [#454] Crash: using CRTL+Z while using line tool
|
||||
- Fixed broken saving pattern description.
|
||||
- Fixed UI bug. Release a dialog size for deploying a formula field.
|
||||
- Fixed broken formula when for system locale thousand separator is a space.
|
||||
|
|
|
@ -1635,6 +1635,12 @@ void MainWindow::CancelTool()
|
|||
ui->actionArrowTool->setChecked(false);
|
||||
helpLabel->setText("");
|
||||
ui->actionStopTool->setEnabled(true);
|
||||
|
||||
// Crash: using CRTL+Z while using line tool.
|
||||
// related bug report:
|
||||
// https://bitbucket.org/dismine/valentina/issues/454/crash-using-crtl-z-while-using-line-tool
|
||||
undoAction->setEnabled(false);
|
||||
redoAction->setEnabled(false);
|
||||
return;
|
||||
case Tool::BasePoint:
|
||||
Q_UNREACHABLE(); //-V501
|
||||
|
@ -1732,6 +1738,12 @@ void MainWindow::CancelTool()
|
|||
}
|
||||
currentScene->setFocus(Qt::OtherFocusReason);
|
||||
currentScene->clearSelection();
|
||||
|
||||
// Crash: using CRTL+Z while using line tool.
|
||||
// related bug report:
|
||||
// https://bitbucket.org/dismine/valentina/issues/454/crash-using-crtl-z-while-using-line-tool
|
||||
undoAction->setEnabled(qApp->getUndoStack()->canUndo());
|
||||
redoAction->setEnabled(qApp->getUndoStack()->canRedo());
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user