Update the status bar depending on the Editor text when the tool changes

It fixes a problem were PaletteView was clearing the StatusBar set by
the Editor when a quicktool keyboard shortcut was pressed.
This commit is contained in:
David Capello 2016-04-25 16:17:30 -03:00
parent 93c616cd7b
commit 97ebd70048
2 changed files with 3 additions and 1 deletions

View File

@ -1362,6 +1362,7 @@ void Editor::onInvalidateRegion(const gfx::Region& region)
void Editor::onActiveToolChange(tools::Tool* tool) void Editor::onActiveToolChange(tools::Tool* tool)
{ {
m_state->onActiveToolChange(this, tool); m_state->onActiveToolChange(this, tool);
updateStatusBar();
} }
void Editor::onFgColorChange() void Editor::onFgColorChange()

View File

@ -280,7 +280,8 @@ bool PaletteView::onProcessMessage(Message* msg)
case kKeyDownMessage: case kKeyDownMessage:
case kKeyUpMessage: case kKeyUpMessage:
case kMouseEnterMessage: case kMouseEnterMessage:
updateCopyFlag(msg); if (hasMouse())
updateCopyFlag(msg);
break; break;
case kMouseDownMessage: case kMouseDownMessage: