Merge branch 'hotfix-1.6.2' into develop-1.7
This commit is contained in:
@@ -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<HWND>(API::root(impl_->owner))); // the native handle of the parent nana form goes here
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -751,15 +751,27 @@ namespace nana
|
||||
if((pos == npos) || (pos >= list_.size()))
|
||||
{
|
||||
pos = list_.size();
|
||||
|
||||
if(evt_agent_)
|
||||
if(!evt_agent_->adding(pos))
|
||||
return false;
|
||||
|
||||
this->list_.emplace_back();
|
||||
}
|
||||
else
|
||||
{
|
||||
if(evt_agent_)
|
||||
if(!evt_agent_->adding(pos))
|
||||
return false;
|
||||
|
||||
list_.emplace(iterator_at(pos));
|
||||
}
|
||||
|
||||
basis_.active = pos;
|
||||
if(evt_agent_)
|
||||
{
|
||||
evt_agent_->added(pos);
|
||||
erase(pos);
|
||||
evt_agent_->activated(pos);
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -584,7 +584,16 @@ namespace drawerbase {
|
||||
{
|
||||
internal_scope_guard lock;
|
||||
auto editor = get_drawer_trigger().editor();
|
||||
if(editor && editor->select(yes))
|
||||
if (editor && editor->select(yes))
|
||||
API::refresh_window(*this);
|
||||
}
|
||||
|
||||
|
||||
void textbox::select_points(nana::upoint arg_a, nana::upoint arg_b)
|
||||
{
|
||||
auto editor = get_drawer_trigger().editor();
|
||||
internal_scope_guard lock;
|
||||
if (editor && editor->select_points(arg_a, arg_b))
|
||||
API::refresh_window(*this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user