X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cdaed0ba00e01b31fe236b270b8a209f3ac8921..9fd9e47a93dfcdd99c2722e288a0f28a51ce6f5f:/wxPython/src/msw/controls2.py diff --git a/wxPython/src/msw/controls2.py b/wxPython/src/msw/controls2.py index 7f39893d1b..a972112caa 100644 --- a/wxPython/src/msw/controls2.py +++ b/wxPython/src/msw/controls2.py @@ -1232,7 +1232,6 @@ class wxGenericDirCtrlPtr(wxControlPtr): return val def GetTreeCtrl(self, *_args, **_kwargs): val = apply(controls2c.wxGenericDirCtrl_GetTreeCtrl,(self,) + _args, _kwargs) - if val: val = wxTreeCtrlPtr(val) return val def GetFilterListCtrl(self, *_args, **_kwargs): val = apply(controls2c.wxGenericDirCtrl_GetFilterListCtrl,(self,) + _args, _kwargs)