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 aa3a335
Showing 1 changed file with 8 additions and 8 deletions.
@@ -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.