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 9883c7d commit 8984d59Copy full SHA for 8984d59
src/app/qgsvisibilitypresets.cpp
@@ -30,7 +30,7 @@
30
#include "qgsnewnamedialog.h"
31
32
#include <QInputDialog>
33
-
+#include <QMessageBox>
34
35
QgsVisibilityPresets* QgsVisibilityPresets::sInstance;
36
@@ -181,6 +181,12 @@ void QgsVisibilityPresets::replaceTriggered()
181
if ( !actionPreset )
182
return;
183
184
+ int res = QMessageBox::question( mMenu, tr( "Replace preset" ),
185
+ tr( "Are you sure you want to replace the existing preset %1?" ).arg( actionPreset->text() ),
186
+ QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
187
+ if ( res != QMessageBox::Yes )
188
+ return;
189
+
190
//adding preset with same name is effectively a replace
191
addPreset( actionPreset->text() );
192
}
0 commit comments