mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
Clean up main window ids
This commit is contained in:
1 parent
6fd7888a6d
commit
ff4a54121f
8 files changed
+26
-17
No files matched your search
@@ -1121,11 +1121,11 @@ RiuPlotMainWindow* RiaGuiApplication::mainPlotWindow()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuMainWindowBase* RiaGuiApplication::mainWindowByID( int mainWindowID )
|
||||
RiuMainWindowBase* RiaGuiApplication::mainWindowByID( RiaDefines::RIMainWindow mainWindowID )
|
||||
{
|
||||
if ( mainWindowID == 0 )
|
||||
if ( mainWindowID == RiaDefines::RIMainWindow::MAIN_WINDOW_3D )
|
||||
return m_mainWindow;
|
||||
else if ( mainWindowID == 1 )
|
||||
else if ( mainWindowID == RiaDefines::RIMainWindow::MAIN_WINDOW_PLOTS )
|
||||
return m_mainPlotWindow.get();
|
||||
else
|
||||
return nullptr;
|
||||
|
||||
Reference in new issue
Block a user