#2535 Use the MainWindowTools class instead of MainWindow directly (part 2)

This commit is contained in:
Jacob Støren committed 2018-02-27 16:46:53 +01:00
1 parent d74807d669
commit 72013f4ff8
16 files changed
+45 -47

No files matched your search

@@ -26,7 +26,7 @@
#include "RimProject.h"
#include "RimSummaryObservedDataFile.h"
#include "RiuMainPlotWindow.h"
#include "RiuPlotMainWindowTools.h"
#include "cafSelectionManager.h"
@@ -100,7 +100,8 @@ void RicImportObservedDataFeature::selectObservedDataFileInDialog()
} while (retryImport);
}
RiaApplication::instance()->getOrCreateAndShowMainPlotWindow()->selectAsCurrentItem(observedData);
RiuPlotMainWindowTools::showPlotMainWindow();
RiuPlotMainWindowTools::selectAsCurrentItem(observedData);
}
//--------------------------------------------------------------------------------------------------