mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
First non-MDI version. Still some missing links and features.
This commit is contained in:
@@ -150,21 +150,21 @@ RimEclipseCase* RiaSocketServer::findReservoir( int caseId )
|
||||
return eclipseView->eclipseCase();
|
||||
}
|
||||
|
||||
// If the active mdi window is different from an Eclipse view, search through available mdi windows to find the
|
||||
// last activated Eclipse view. The sub windows are returned with the most recent activated window at the back.
|
||||
QList<QMdiSubWindow*> subWindows = RiuMainWindow::instance()->subWindowList( QMdiArea::ActivationHistoryOrder );
|
||||
for ( int i = subWindows.size() - 1; i > -1; i-- )
|
||||
{
|
||||
RiuViewer* viewer = subWindows[i]->widget()->findChild<RiuViewer*>();
|
||||
if ( viewer )
|
||||
{
|
||||
RimEclipseView* riv = dynamic_cast<RimEclipseView*>( viewer->ownerReservoirView() );
|
||||
if ( riv )
|
||||
{
|
||||
return riv->eclipseCase();
|
||||
}
|
||||
}
|
||||
}
|
||||
//// If the active mdi window is different from an Eclipse view, search through available mdi windows to find the
|
||||
//// last activated Eclipse view. The sub windows are returned with the most recent activated window at the back.
|
||||
// QList<QMdiSubWindow*> subWindows = RiuMainWindow::instance()->subWindowList( QMdiArea::ActivationHistoryOrder );
|
||||
// for ( int i = subWindows.size() - 1; i > -1; i-- )
|
||||
//{
|
||||
// RiuViewer* viewer = subWindows[i]->widget()->findChild<RiuViewer*>();
|
||||
// if ( viewer )
|
||||
// {
|
||||
// RimEclipseView* riv = dynamic_cast<RimEclipseView*>( viewer->ownerReservoirView() );
|
||||
// if ( riv )
|
||||
// {
|
||||
// return riv->eclipseCase();
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user