Preserve the path when changing flags for wxDirCtrl in Widgets sample
Do not reset the path in wxDirCtrl when changing its flags. Resetting the path to the default view where no files are shown may make showing off some flags more difficult.
This commit is contained in:
@@ -263,7 +263,7 @@ void DirCtrlWidgetsPage::CreateDirCtrl()
|
||||
wxGenericDirCtrl *dirCtrl = new wxGenericDirCtrl(
|
||||
this,
|
||||
DirCtrlPage_Ctrl,
|
||||
wxDirDialogDefaultFolderStr,
|
||||
m_dirCtrl->GetPath(),
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
style
|
||||
|
Reference in New Issue
Block a user