dialogs setup default: use a better dialog to show errors.

This commit is contained in:
jean-pierre charras
2023-12-07 17:04:33 +01:00
parent 0c1fba8686
commit ccb935db4a
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -473,7 +473,8 @@ bool PANEL_FP_EDITOR_DEFAULTS::TransferDataFromWindow()
if( errorsMsg.IsEmpty() )
return true;
DisplayErrorMessage( this,errorsMsg, _( "Parameter error" ) );
KIDIALOG dlg( this, errorsMsg, KIDIALOG::KD_ERROR, _( "Parameter error" ) );
dlg.ShowModal();
return false;
}
@@ -310,7 +310,8 @@ bool PANEL_SETUP_TEXT_AND_GRAPHICS::TransferDataFromWindow()
if( errorsMsg.IsEmpty() )
return true;
DisplayErrorMessage( this,errorsMsg, _( "Parameter error" ) );
KIDIALOG dlg( this, errorsMsg, KIDIALOG::KD_ERROR, _( "Parameter error" ) );
dlg.ShowModal();
return false;
}