#1002 System : Improve restore of main windows from minimized state

This commit is contained in:
Magne Sjaastad
2016-11-24 14:47:20 +01:00
parent 9c9bfebbe7
commit 44b5eab736
2 changed files with 21 additions and 2 deletions

View File

@@ -1507,7 +1507,16 @@ RiuMainPlotWindow* RiaApplication::getOrCreateAndShowMainPlotWindow()
loadAndUpdatePlotData();
}
m_mainPlotWindow->show();
if (m_mainPlotWindow->isMinimized())
{
m_mainPlotWindow->showNormal();
m_mainPlotWindow->update();
}
else
{
m_mainPlotWindow->show();
}
m_mainPlotWindow->raise();
return m_mainPlotWindow;