From 87531dadcc901fc60f20c88a941bf7de496d0b5c Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 27 Dec 2017 21:33:38 +0100 Subject: [PATCH] Fixed #48 (Cancel does not reset current tool) --- src/lay/lay/layMainWindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lay/lay/layMainWindow.cc b/src/lay/lay/layMainWindow.cc index 4b9e7953f..a4250d7e1 100644 --- a/src/lay/lay/layMainWindow.cc +++ b/src/lay/lay/layMainWindow.cc @@ -2327,7 +2327,7 @@ MainWindow::select_mode (int m) std::vector items = menu ()->items ("@toolbar"); for (std::vector::const_iterator i = items.begin (); i != items.end (); ++i) { Action a = menu ()->action (*i); - if (a.qaction ()->data ().toInt () == m_mode) { + if (a.qaction ()->isCheckable() && a.qaction ()->data ().toInt () == m_mode) { a.set_checked (true); break; }