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");
|
||||
|
||||
@@ -98,9 +98,7 @@ public:
|
||||
|
||||
if (m_usedIds.find(currentValue) != m_usedIds.end())
|
||||
{
|
||||
QApplication* qapplication = qobject_cast<QApplication*>(qApp);
|
||||
|
||||
foreach(QWidget* widget, qapplication->topLevelWidgets())
|
||||
foreach(QWidget* widget, QApplication::topLevelWidgets())
|
||||
{
|
||||
if (widget->inherits("QMainWindow"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user