Remove compiler warning

This commit is contained in:
Jacob Støren
2018-09-19 10:24:17 +02:00
parent 0259eb6402
commit 3cd9c6123c
2 changed files with 2 additions and 6 deletions

View File

@@ -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");