Fix bug where palette isn't correctly set when the DocumentView is changed

This commit is contained in:
David Capello 2013-02-20 19:54:00 -03:00
parent f4d2b60948
commit e06bd23b4e

View File

@ -79,6 +79,9 @@ void UIContext::setActiveView(widgets::DocumentView* docView)
setActiveDocument(docView ? docView->getDocument(): NULL);
App::instance()->getMainWindow()->getMiniEditor()->updateUsingEditor(current_editor);
// Restore the palette of the selected document.
app_refresh_screen(docView ? docView->getDocument(): NULL);
}
size_t UIContext::countViewsOf(Document* document) const