X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3e65dac0c4e7ad19e3c270caa1e0eea138e5d8d..38cfbffa153c8835025b4207faaf0a12b0b53e6f:/user/wxFile/dirctrl.cpp?ds=sidebyside diff --git a/user/wxFile/dirctrl.cpp b/user/wxFile/dirctrl.cpp index 98b18d709c..16ad375642 100644 --- a/user/wxFile/dirctrl.cpp +++ b/user/wxFile/dirctrl.cpp @@ -33,10 +33,8 @@ wxDirInfo::wxDirInfo( const wxString &path ) if (m_path == "/home") { m_name = "My Home"; - m_path += "/"; - char buf[300]; - wxGetHomeDir( buf ); - m_path = buf; + m_path = ""; + wxGetHomeDir( &m_path ); } else if (m_path == "/proc") m_name = "Info Filesystem"; @@ -97,7 +95,7 @@ wxDirCtrl::wxDirCtrl(wxWindow *parent, const wxWindowID id, const wxString &WXUN item.m_children = 1; m_rootId = InsertItem( 0, item ); - SetDropTarget( new wxFileDropTarget() ); +// SetDropTarget( new wxFileDropTarget() ); }; void wxDirCtrl::OnExpandItem( const wxTreeEvent &event )