Merge branch 'dev' of git@github.com:dacap/aseprite.git into dev

This commit is contained in:
David Capello 2013-11-21 00:28:16 -03:00
commit 88d8235e86
3 changed files with 7 additions and 1 deletions

View File

@ -173,6 +173,10 @@ int App::run()
// Redraw the whole screen.
ui::Manager::getDefault()->invalidate();
// 2013-11-19 - JRM - Force setting active view to NULL, workaround for setting
// window title to proper devault value. (Issue #285)
UIContext::instance()->setActiveView(NULL);
}
// Set background mode for non-GUI modes

View File

@ -171,7 +171,7 @@ void OptionsCommand::onExecute(Context* context)
void OptionsCommand::onResetCheckedBg()
{
// Default values
m_checked_bg->setSelectedItem((int)RenderEngine::CHECKED_BG_16X16);
m_checked_bg->setSelectedItemIndex((int)RenderEngine::CHECKED_BG_16X16);
m_checked_bg_zoom->setSelected(true);
m_checked_bg_color1->setColor(app::Color::fromRgb(128, 128, 128));
m_checked_bg_color2->setColor(app::Color::fromRgb(192, 192, 192));

View File

@ -202,6 +202,8 @@ void MainWindow::onActiveViewChange()
{
if (DocumentView* docView = dynamic_cast<DocumentView*>(m_workspace->getActiveView()))
UIContext::instance()->setActiveView(docView);
else
UIContext::instance()->setActiveView(NULL);
}
void MainWindow::clickTab(Tabs* tabs, TabView* tabView, ui::MouseButtons buttons)