Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move parent to mainwindow widget
(cherry picked from commit 7ed8460)
  • Loading branch information
slarosa authored and nyalldawson committed Sep 14, 2018
1 parent 5e9709f commit 739d50e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmapthemes.cpp
Expand Up @@ -133,7 +133,7 @@ void QgsMapThemes::replaceTriggered()
if ( !actionPreset )
return;

int res = QMessageBox::question( nullptr, tr( "Replace Theme" ),
int res = QMessageBox::question( QgisApp::instance(), tr( "Replace Theme" ),
tr( "Are you sure you want to replace the existing theme “%1”?" ).arg( actionPreset->text() ),
QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
if ( res != QMessageBox::Yes )
Expand All @@ -160,7 +160,7 @@ void QgsMapThemes::removeCurrentPreset()
{
if ( actionPreset->isChecked() )
{
int res = QMessageBox::question( nullptr, tr( "Remove Theme" ),
int res = QMessageBox::question( QgisApp::instance(), tr( "Remove Theme" ),
tr( "Are you sure you want to remove the existing theme “%1”?" ).arg( actionPreset->text() ),
QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
if ( res == QMessageBox::Yes )
Expand Down

0 comments on commit 739d50e

Please sign in to comment.