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

This commit is contained in:
jean-pierre charras 2023-12-07 14:41:43 +01:00
parent 0c1fba8686
commit ccb935db4a
2 changed files with 4 additions and 2 deletions

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;
}

View File

@ -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;
}