diff -r 6ca6e8c647d4 -r 128efb9d148b src/mainwindow.cpp --- a/src/mainwindow.cpp Mon Jul 19 23:41:52 2021 +0300 +++ b/src/mainwindow.cpp Tue Jul 20 01:22:01 2021 +0300 @@ -399,6 +399,10 @@ { if (tool != nullptr && tool != this->selectedTool) { + if (this->selectedTool != nullptr) + { + this->selectedTool->reset(); + } this->selectedTool = tool; for (auto&& pair : items(this->toolActions)) {