Skip to content

Commit

Permalink
change parent to nullptr in mapthemes message box
Browse files Browse the repository at this point in the history
(cherry picked from commit 96712be)
  • Loading branch information
slarosa authored and nyalldawson committed Sep 14, 2018
1 parent 724ae1f commit 5e9709f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmapthemes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void QgsMapThemes::replaceTriggered()
if ( !actionPreset )
return;

int res = QMessageBox::question( mMenu, tr( "Replace Theme" ),
int res = QMessageBox::question( nullptr, 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( mMenu, tr( "Remove Theme" ),
int res = QMessageBox::question( nullptr, 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 5e9709f

Please sign in to comment.