Workspace: Fix bug referencing to a dead panel

This commit is contained in:
David Capello 2015-04-01 11:35:52 -03:00
parent 9f994ad253
commit 154a79be3c

View File

@ -101,6 +101,10 @@ void Workspace::setActiveView(WorkspaceView* view)
void Workspace::setMainPanelAsActive()
{
m_activePanel = &m_mainPanel;
removeDropViewPreview();
m_dropPreviewPanel = nullptr;
ActiveViewChanged(); // Fire ActiveViewChanged event
}