mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 21:09:30 +02:00
Qt: fixed crash in TQtWidgetSet.MessageBox if passed HWND is 0.
git-svn-id: trunk@41827 -
This commit is contained in:
parent
dc9b9a3dd8
commit
0661c172d1
@ -4920,7 +4920,10 @@ begin
|
||||
Str := GetUtf8String('TQtWidgetSet.MessageBox - not implemented');
|
||||
TitleStr := GetUtf8String(lpCaption);
|
||||
OkStr := GetUtf8String('Ok');
|
||||
Result := QMessageBox_information(TQtWidget(hWnd).Widget, @Str, @TitleStr, @OkStr);
|
||||
if HWND <> 0 then
|
||||
Result := QMessageBox_information(TQtWidget(hWnd).Widget, @Str, @TitleStr, @OkStr)
|
||||
else
|
||||
Result := QMessageBox_information(nil, @Str, @TitleStr, @OkStr);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user