SetSizerAndFit (_sizer);
_browse->Connect (wxID_ANY, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler (DirPickerCtrl::browse_clicked), 0, this);
-
- /* Do this after the fit so that our folder label stays long */
- SetPath (wxStandardPaths::Get().GetDocumentsDir());
}
void
if (_path == wxStandardPaths::Get().GetDocumentsDir()) {
_folder->SetLabel (_("My Documents"));
} else {
+#if BOOST_FILESYSTEM_VERSION == 3
_folder->SetLabel (std_to_wx (filesystem::path (wx_to_std (_path)).leaf().string()));
+#else
+ _folder->SetLabel (std_to_wx (filesystem::path (wx_to_std (_path)).leaf()));
+#endif
}
}