Remove redundant call to wxGenericDirCtrl::Init() from Create().
Only ctors call Init(), by convention, and doing it again from Create() is unnecessary.
This commit is contained in:
@@ -414,8 +414,6 @@ bool wxGenericDirCtrl::Create(wxWindow *parent,
|
|||||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
||||||
SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
|
SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
|
||||||
|
|
||||||
Init();
|
|
||||||
|
|
||||||
long treeStyle = wxTR_HAS_BUTTONS;
|
long treeStyle = wxTR_HAS_BUTTONS;
|
||||||
|
|
||||||
// On Windows CE, if you hide the root, you get a crash when
|
// On Windows CE, if you hide the root, you get a crash when
|
||||||
|
Reference in New Issue
Block a user