mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
move parent to mainwindow widget
This commit is contained in:
parent
96712be577
commit
7ed8460c60
@ -133,7 +133,7 @@ void QgsMapThemes::replaceTriggered()
|
||||
if ( !actionPreset )
|
||||
return;
|
||||
|
||||
int res = QMessageBox::question( nullptr, tr( "Replace Theme" ),
|
||||
int res = QMessageBox::question( QgisApp::instance(), 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( nullptr, tr( "Remove Theme" ),
|
||||
int res = QMessageBox::question( QgisApp::instance(), 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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user