Skip to content

Commit aa3a335

Browse files
committed
Use question messagebox for layer rollback/cancel/save dialog
...since this messagebox is asking a question. Also change confusing OK/Cancel option to clearer Yes/No options.
1 parent 15e04bc commit aa3a335

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/app/qgisapp.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8792,14 +8792,14 @@ void QgisApp::cancelAllEdits( bool verifyAction )
87928792
bool QgisApp::verifyEditsActionDialog( const QString &act, const QString &upon )
87938793
{
87948794
bool res = false;
8795-
switch ( QMessageBox::information( nullptr,
8796-
tr( "Current edits" ),
8797-
tr( "%1 current changes for %2 layer(s)?" )
8798-
.arg( act,
8799-
upon ),
8800-
QMessageBox::Cancel | QMessageBox::Ok ) )
8801-
{
8802-
case QMessageBox::Ok:
8795+
switch ( QMessageBox::question( nullptr,
8796+
tr( "Current edits" ),
8797+
tr( "%1 current changes for %2 layer(s)?" )
8798+
.arg( act,
8799+
upon ),
8800+
QMessageBox::Yes | QMessageBox::No ) )
8801+
{
8802+
case QMessageBox::Yes:
88038803
res = true;
88048804
break;
88058805
default:

0 commit comments

Comments
 (0)