Generate a palette change event when a color entry is modified

using the Palette Editor (and set_current_palette() is not used).
This commit is contained in:
David Capello 2011-06-25 20:18:24 -03:00
parent e74bebcc79
commit 9b658ad24b

View File

@ -327,6 +327,10 @@ bool PaletteEntryEditor::onProcessMessage(Message* msg)
m_redrawAll = false;
jmanager_stop_timer(m_redrawTimerId);
// Call all listener of PaletteChange event.
App::instance()->PaletteChange();
// Redraw all editors
try {
const ActiveDocumentReader document(UIContext::instance());
update_editors_with_document(document);