We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5a3967 commit b1158ffCopy full SHA for b1158ff
src/app/qgsmapthemes.cpp
@@ -29,7 +29,7 @@
29
#include "qgsnewnamedialog.h"
30
31
#include <QInputDialog>
32
-
+#include <QMessageBox>
33
34
QgsMapThemes* QgsMapThemes::sInstance;
35
@@ -136,6 +136,12 @@ void QgsMapThemes::replaceTriggered()
136
if ( !actionPreset )
137
return;
138
139
+ int res = QMessageBox::question( mMenu, tr( "Replace theme" ),
140
+ tr( "Are you sure you want to replace the existing theme “%1”?" ).arg( actionPreset->text() ),
141
+ QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
142
+ if ( res != QMessageBox::Yes )
143
+ return;
144
+
145
//adding preset with same name is effectively a replace
146
addPreset( actionPreset->text() );
147
}
0 commit comments