Merge branch 'bsteers4-master-patch-14221' into 'master'

Fix MessageView.class

See merge request gambas/gambas!183
This commit is contained in:
Benoît Minisini 2021-02-03 20:35:18 +00:00
commit 54a2a6bf0f

View file

@ -95,21 +95,22 @@ Public Sub Open(Text As String, Optional Icon As Picture)
If $sText = Text Then Return If $sText = Text Then Return
$hIcon = Icon
If Not Icon Then
Try $hIcon = Picture["icon:/32/warning"]
If Error Then $hIcon = Picture["img/32/warning.png"]
Endif
If Me.Visible Then If Me.Visible Then
$aText.Add(Text) $aText.Add(Text)
$aIcon.Add(Icon) $aIcon.Add($hIcon)
UpdateButton UpdateButton
Return Return
Endif Endif
$sText = Text $sText = Text
$hIcon = Icon
If Not Icon Then
Try $hIcon = Picture["icon:/32/warning"]
If Error Then $hIcon = Picture["img/32/warning.png"]
Endif
DoOpen DoOpen