Skip to content
Permalink
Browse files

change parent to nullptr in mapthemes message box

(cherry picked from commit 96712be)
  • Loading branch information
slarosa authored and nyalldawson committed Sep 14, 2018
1 parent 724ae1f commit 5e9709f73d37bd0bfd046cab72aed95689d2c306
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsmapthemes.cpp
@@ -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 )
@@ -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 )

0 comments on commit 5e9709f

Please sign in to comment.
You can’t perform that action at this time.