Skip to content

Commit

Permalink
Use question messagebox for layer rollback/cancel/save dialog
Browse files Browse the repository at this point in the history
...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.
16 changes: 8 additions & 8 deletions src/app/qgisapp.cpp
Expand Up @@ -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:
Expand Down

0 comments on commit aa3a335

Please sign in to comment.