mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Introduce some wrapper functions for message and error dialogs in order to have less code and to avoid hidden titles on Windows XP. Fixes issue #2425.
This commit is contained in:
@ -481,7 +481,7 @@ var
|
||||
end;
|
||||
on E:EFCreateError do begin
|
||||
// Occurs when export output file can not be created
|
||||
MessageDlg(E.Message, mtError, [mbOK], 0);
|
||||
ErrorDialog(E.Message);
|
||||
FCancelled := True;
|
||||
end;
|
||||
end;
|
||||
@ -896,7 +896,7 @@ begin
|
||||
except
|
||||
on E:EDatabaseError do begin
|
||||
Screen.Cursor := crDefault;
|
||||
MessageDlg(E.Message, mtError, [mbOK], 0);
|
||||
ErrorDialog(E.Message);
|
||||
comboExportOutputType.ItemIndex := FLastOutputSelectedIndex;
|
||||
comboExportOutputType.OnChange(Sender);
|
||||
end;
|
||||
|
Reference in New Issue
Block a user