Don't change two times the status bar text when the selected tool changes

This commit is contained in:
David Capello 2016-04-25 15:29:06 -03:00
parent fc0cebc0dd
commit 93c616cd7b

View File

@ -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()