Skip to content
Permalink
Browse files

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.
  • Loading branch information
nyalldawson committed Feb 6, 2018
1 parent 15e04bc commit aa3a3356d13cb664303ad36879eaffd81038aa56
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/app/qgisapp.cpp
@@ -8792,14 +8792,14 @@ void QgisApp::cancelAllEdits( bool verifyAction )
bool QgisApp::verifyEditsActionDialog( const QString &act, const QString &upon )
{
bool res = false;
switch ( QMessageBox::information( nullptr,
tr( "Current edits" ),
tr( "%1 current changes for %2 layer(s)?" )
.arg( act,
upon ),
QMessageBox::Cancel | QMessageBox::Ok ) )
{
case QMessageBox::Ok:
switch ( QMessageBox::question( nullptr,
tr( "Current edits" ),
tr( "%1 current changes for %2 layer(s)?" )
.arg( act,
upon ),
QMessageBox::Yes | QMessageBox::No ) )
{
case QMessageBox::Yes:
res = true;
break;
default:

0 comments on commit aa3a335

Please sign in to comment.
You can’t perform that action at this time.