From 93c616cd7b86ee61df4588870fd399836bf24810 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 25 Apr 2016 15:29:06 -0300 Subject: [PATCH] Don't change two times the status bar text when the selected tool changes --- src/app/ui/status_bar.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/ui/status_bar.cpp b/src/app/ui/status_bar.cpp index 5131ad1be..f6078e466 100644 --- a/src/app/ui/status_bar.cpp +++ b/src/app/ui/status_bar.cpp @@ -547,10 +547,8 @@ StatusBar::~StatusBar() void StatusBar::onSelectedToolChange(tools::Tool* tool) { - if (isVisible() && tool) { + if (isVisible() && tool) showTool(500, tool); - setTextf("%s Selected", tool->getText().c_str()); - } } void StatusBar::clearText()