Fix bug. Pressing Escape key disables undocommands.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-11-11 11:28:54 +02:00
parent c180a26e09
commit 238e6fb24b

View File

@ -2277,7 +2277,7 @@ QT_WARNING_POP
*/
void MainWindow::ArrowTool(bool checked)
{
if (checked)
if (checked && currentTool != Tool::Arrow)
{
qCDebug(vMainWindow, "Arrow tool.");
CancelTool();