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:
Vadim Zeitlin
2015-06-01 00:22:52 +02:00
parent de252e1f4d
commit 5cdace59e8

View File

@@ -414,8 +414,6 @@ bool wxGenericDirCtrl::Create(wxWindow *parent,
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
Init();
long treeStyle = wxTR_HAS_BUTTONS;
// On Windows CE, if you hide the root, you get a crash when