File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ void QgsMapThemes::replaceTriggered()
133
133
if ( !actionPreset )
134
134
return ;
135
135
136
- int res = QMessageBox::question ( nullptr , tr ( " Replace Theme" ),
136
+ int res = QMessageBox::question ( QgisApp::instance () , tr ( " Replace Theme" ),
137
137
tr ( " Are you sure you want to replace the existing theme “%1”?" ).arg ( actionPreset->text () ),
138
138
QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
139
139
if ( res != QMessageBox::Yes )
@@ -160,7 +160,7 @@ void QgsMapThemes::removeCurrentPreset()
160
160
{
161
161
if ( actionPreset->isChecked () )
162
162
{
163
- int res = QMessageBox::question ( nullptr , tr ( " Remove Theme" ),
163
+ int res = QMessageBox::question ( QgisApp::instance () , tr ( " Remove Theme" ),
164
164
tr ( " Are you sure you want to remove the existing theme “%1”?" ).arg ( actionPreset->text () ),
165
165
QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
166
166
if ( res == QMessageBox::Yes )
You can’t perform that action at this time.
0 commit comments