Fix using wxTreeListCtrl with generic wxDataViewCtrl in wxGTK
Restrict GTK workaround in wxTreeListModel::IsContainer() to the native version, it does have a drawback when using the generic one as it resulted in all items having the expander button. See #18632.
This commit is contained in:
@@ -735,7 +735,7 @@ bool wxTreeListModel::IsContainer(const wxDataViewItem& item) const
|
||||
// adding the item itself) and we can't know whether we're container
|
||||
// or not by then. Luckily, always returning true doesn't have any
|
||||
// serious drawbacks for us.
|
||||
#ifdef __WXGTK__
|
||||
#if defined(__WXGTK__) && defined(wxHAS_NATIVE_DATAVIEWCTRL)
|
||||
wxUnusedVar(item);
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user