From 905c58362166dfa4ef6ad9ba304165e963034b99 Mon Sep 17 00:00:00 2001 From: besh81 Date: Fri, 5 Oct 2018 11:45:09 +0200 Subject: [PATCH] fix folderbox init_path fix folderbox init_path --- source/gui/filebox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/filebox.cpp b/source/gui/filebox.cpp index fcaba515..7feda8bd 100644 --- a/source/gui/filebox.cpp +++ b/source/gui/filebox.cpp @@ -1257,7 +1257,7 @@ namespace nana IShellItem *init_path{ nullptr }; hr = SHCreateItemFromParsingName(impl_->init_path.wstring().c_str(), nullptr, IID_PPV_ARGS(&init_path)); if (SUCCEEDED(hr)) - fd->SetDefaultFolder(init_path); + fd->SetFolder(init_path); fd->SetOptions(FOS_PICKFOLDERS); fd->Show(reinterpret_cast(API::root(impl_->owner))); // the native handle of the parent nana form goes here