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()
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 )
You can’t perform that action at this time.
0 commit comments