@@ -8581,10 +8581,10 @@ bool QgisApp::toggleEditing( QgsMapLayer *layer, bool allowCancel )
8581
8581
if ( allowCancel )
8582
8582
buttons |= QMessageBox::Cancel;
8583
8583
8584
- switch ( QMessageBox::information ( nullptr,
8585
- tr( "Stop editing" ),
8586
- tr( "Do you want to save the changes to layer %1?" ).arg( vlayer->name() ),
8587
- buttons ) )
8584
+ switch ( QMessageBox::question ( nullptr,
8585
+ tr( "Stop editing" ),
8586
+ tr( "Do you want to save the changes to layer %1?" ).arg( vlayer->name() ),
8587
+ buttons ) )
8588
8588
{
8589
8589
case QMessageBox::Cancel:
8590
8590
res = false;
@@ -8692,12 +8692,12 @@ void QgisApp::cancelEdits( QgsMapLayer *layer, bool leaveEditable, bool triggerR
8692
8692
if ( !vlayer->rollBack( !leaveEditable ) )
8693
8693
{
8694
8694
mSaveRollbackInProgress = false;
8695
- QMessageBox::information ( nullptr,
8696
- tr( "Error" ),
8697
- tr( "Could not %1 changes to layer %2\n\nErrors: %3\n" )
8698
- .arg( leaveEditable ? tr( "rollback" ) : tr( "cancel" ),
8699
- vlayer->name(),
8700
- vlayer->commitErrors().join( QStringLiteral( "\n " ) ) ) );
8695
+ QMessageBox::warning ( nullptr,
8696
+ tr( "Error" ),
8697
+ tr( "Could not %1 changes to layer %2\n\nErrors: %3\n" )
8698
+ .arg( leaveEditable ? tr( "rollback" ) : tr( "cancel" ),
8699
+ vlayer->name(),
8700
+ vlayer->commitErrors().join( QStringLiteral( "\n " ) ) ) );
8701
8701
}
8702
8702
freezeCanvases( false );
8703
8703
@@ -10396,11 +10396,11 @@ bool QgisApp::saveDirty()
10396
10396
// old code: mProjectIsDirtyFlag = true;
10397
10397
10398
10398
// prompt user to save
10399
- answer = QMessageBox::information ( this, tr( "Save Project?" ),
10400
- tr( "Do you want to save the current project? %1" )
10401
- .arg( whyDirty ),
10402
- QMessageBox::Save | QMessageBox::Cancel | QMessageBox::Discard,
10403
- hasUnsavedEdits ? QMessageBox::Cancel : QMessageBox::Save );
10399
+ answer = QMessageBox::question ( this, tr( "Save Project?" ),
10400
+ tr( "Do you want to save the current project? %1" )
10401
+ .arg( whyDirty ),
10402
+ QMessageBox::Save | QMessageBox::Cancel | QMessageBox::Discard,
10403
+ hasUnsavedEdits ? QMessageBox::Cancel : QMessageBox::Save );
10404
10404
if ( QMessageBox::Save == answer )
10405
10405
{
10406
10406
if ( !fileSave() )
0 commit comments