Skip to content

Commit 739d50e

Browse files
slarosanyalldawson
authored andcommittedSep 14, 2018
move parent to mainwindow widget
(cherry picked from commit 7ed8460)
1 parent 5e9709f commit 739d50e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/qgsmapthemes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void QgsMapThemes::replaceTriggered()
133133
if ( !actionPreset )
134134
return;
135135

136-
int res = QMessageBox::question( nullptr, tr( "Replace Theme" ),
136+
int res = QMessageBox::question( QgisApp::instance(), tr( "Replace Theme" ),
137137
tr( "Are you sure you want to replace the existing theme “%1”?" ).arg( actionPreset->text() ),
138138
QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
139139
if ( res != QMessageBox::Yes )
@@ -160,7 +160,7 @@ void QgsMapThemes::removeCurrentPreset()
160160
{
161161
if ( actionPreset->isChecked() )
162162
{
163-
int res = QMessageBox::question( nullptr, tr( "Remove Theme" ),
163+
int res = QMessageBox::question( QgisApp::instance(), tr( "Remove Theme" ),
164164
tr( "Are you sure you want to remove the existing theme “%1”?" ).arg( actionPreset->text() ),
165165
QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
166166
if ( res == QMessageBox::Yes )

0 commit comments

Comments
 (0)
Please sign in to comment.