X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c32066b58849e52e4d76e30982414d9f4daae6a..e7bcded47c69499a2cca7be088c77f6e23b39e37:/user/wxFile/wxFile.cpp diff --git a/user/wxFile/wxFile.cpp b/user/wxFile/wxFile.cpp index 01b66dd122..5c93b977df 100644 --- a/user/wxFile/wxFile.cpp +++ b/user/wxFile/wxFile.cpp @@ -155,10 +155,9 @@ MyFrame::MyFrame(void) : m_leftFile = (wxFileCtrl *) NULL; m_dir = new wxDirCtrl( m_splitter, ID_DIRCTRL, "/", wxPoint(10,45), wxSize(200,330) ); - wxString homepath( "/home" ); - wxString str; - wxGetHomeDir( & str ); - homepath = str; + wxString homepath; + wxGetHomeDir( &homepath ); + m_rightFile = new wxFileCtrl( m_splitter, ID_FILECTRL, homepath, wxPoint(220,5), wxSize(200,330) ); m_leftFile = new wxFileCtrl( m_splitter, ID_FILECTRL, homepath, wxPoint(0,5), wxSize(200,330) );