#846 If plot window is hidden, do not open plot window when loading case with summary data

This commit is contained in:
Magne Sjaastad
2016-10-04 13:14:39 +02:00
parent 6313a06f2e
commit 8277080c2e
4 changed files with 13 additions and 2 deletions

View File

@@ -1437,6 +1437,11 @@ bool RiaApplication::tryCloseMainWindow()
//--------------------------------------------------------------------------------------------------
bool RiaApplication::tryClosePlotWindow()
{
if (!m_mainPlotWindow)
{
return true;
}
if (m_mainPlotWindow && !m_mainPlotWindow->isVisible())
{
m_mainPlotWindow->close();