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:
Vadim Zeitlin
2019-12-15 16:26:18 +01:00
parent 028afa194a
commit 4203104d54

View File

@@ -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;