mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +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:
@ -104,7 +104,7 @@ begin
|
||||
text := StringReplace(text, LB, CRLF, [rfReplaceAll]);
|
||||
|
||||
if ScanNulChar(text) then begin
|
||||
MessageDlg(SContainsNulCharGrid, mtInformation, [mbOK], 0);
|
||||
MessageDialog(SContainsNulCharGrid, mtInformation, [mbOK]);
|
||||
text := RemoveNulChars(text);
|
||||
end;
|
||||
|
||||
@ -256,7 +256,7 @@ begin
|
||||
Exit;
|
||||
FStopping := True;
|
||||
if Modified then
|
||||
DoPost := MessageDlg('Apply modifications?', mtConfirmation, [mbYes, mbNo], 0) = mrYes
|
||||
DoPost := MessageDialog('Apply modifications?', mtConfirmation, [mbYes, mbNo]) = mrYes
|
||||
else
|
||||
DoPost := False;
|
||||
if DoPost then
|
||||
|
Reference in New Issue
Block a user