mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-12 13:40:34 +01:00
LCL: Remove a useless test in function DefaultMessageBox.
git-svn-id: trunk@53635 -
This commit is contained in:
parent
02052bcaa9
commit
a8646f33f5
@ -846,12 +846,11 @@ begin
|
||||
else
|
||||
if (Flags and MB_OKCANCEL) = MB_OKCANCEL then
|
||||
Buttons := [mbOK,mbCancel]
|
||||
//else
|
||||
//if (Flags and MB_OK) = MB_OK then <-- MB_OK = 0, the test would always be true.
|
||||
// Buttons := [mbOK]
|
||||
else
|
||||
if (Flags and MB_OK) = MB_OK then
|
||||
Buttons := [mbOK]
|
||||
else
|
||||
{%H-}Buttons := [mbOK];
|
||||
|
||||
Buttons := [mbOK];
|
||||
|
||||
if (Flags and MB_ICONINFORMATION) = MB_ICONINFORMATION then
|
||||
DlgTYpe := mtInformation
|
||||
|
||||
Loading…
Reference in New Issue
Block a user