mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 23:29:25 +02:00
Gtk3: better fix for crash. issue #41449
This commit is contained in:
parent
87877c4fda
commit
dc40fbaf65
@ -2397,7 +2397,7 @@ begin
|
||||
Event^.button.send_event := NO_PROPAGATION_TO_PARENT;
|
||||
|
||||
Result := False;
|
||||
if SavedHandle <> PtrUInt(Self) then
|
||||
if (SavedHandle <> PtrUInt(Self)) or (LCLObject = nil) or (FWidget = nil) then
|
||||
exit;
|
||||
|
||||
if Msg.Msg = LM_RBUTTONDOWN then
|
||||
@ -2407,14 +2407,14 @@ begin
|
||||
MsgPopup.XPos := SmallInt(Round(Event^.button.x_root));
|
||||
MsgPopup.YPos := SmallInt(Round(Event^.button.y_root));
|
||||
DeliverMessage(MsgPopup, True);
|
||||
if SavedHandle <> PtrUInt(Self) then
|
||||
if (SavedHandle <> PtrUInt(Self)) or (LCLObject = nil) or (FWidget = nil) then
|
||||
exit;
|
||||
end;
|
||||
|
||||
if not Result then
|
||||
begin
|
||||
Result := DeliverMessage(Msg, True) <> 0;
|
||||
if SavedHandle <> PtrUInt(Self) then
|
||||
if (SavedHandle <> PtrUInt(Self)) or (LCLObject = nil) or (FWidget = nil) then
|
||||
exit;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user