mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2535 Use the MainWindowTools class instead of MainWindow directly (part 3)
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include "RicSnapshotViewToFileFeature.h"
|
||||
#include "RicSnapshotFilenameGenerator.h"
|
||||
|
||||
#include "RiuMainPlotWindow.h"
|
||||
#include "RiuPlotMainWindowTools.h"
|
||||
|
||||
#include "cafUtils.h"
|
||||
|
||||
@@ -123,11 +123,7 @@ void RicSnapshotAllPlotsToFileFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
if (currentActiveWidget)
|
||||
{
|
||||
RiuMainPlotWindow* mainPlotWindow = RiaApplication::instance()->mainPlotWindow();
|
||||
if (mainPlotWindow)
|
||||
{
|
||||
mainPlotWindow->setActiveViewer(currentActiveWidget);
|
||||
}
|
||||
RiuPlotMainWindowTools::setActiveViewer(currentActiveWidget);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user