mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 14:00:41 +02:00
gtk2: added check before SetMainWidget call
git-svn-id: trunk@12255 -
This commit is contained in:
parent
9912f6cd2a
commit
83df47bec7
@ -1296,6 +1296,7 @@ begin
|
||||
|
||||
SetMainWidget(Box, ComboWidget);
|
||||
SetMainWidget(Box, GTK_BIN(ComboWidget)^.child);
|
||||
if PGtkComboBoxPrivate(PGtkComboBox(ComboWidget)^.priv)^.button <> nil then
|
||||
SetMainWidget(Box, PGtkComboBoxPrivate(PGtkComboBox(ComboWidget)^.priv)^.button);
|
||||
|
||||
WidgetInfo^.CoreWidget := ComboWidget;
|
||||
|
Loading…
Reference in New Issue
Block a user