mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove compiler warning
This commit is contained in:
@@ -131,13 +131,11 @@ bool RicSnapshotViewToFileFeature::isCommandEnabled()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicSnapshotViewToFileFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
|
||||
// Get active view window before displaying the file selection dialog
|
||||
// If this is done after the file save dialog is displayed (and closed)
|
||||
// app->activeViewWindow() returns NULL on Linux
|
||||
|
||||
RimViewWindow* viewWindow = app->activeViewWindow();
|
||||
RimViewWindow* viewWindow = RiaApplication::activeViewWindow();
|
||||
if (!viewWindow)
|
||||
{
|
||||
RiaLogging::error("No view window is available, nothing to do");
|
||||
|
||||
Reference in New Issue
Block a user