fix crash error when operate a closed treebox

This commit is contained in:
Jinhao
2017-07-17 00:37:30 +08:00
parent 87698de126
commit cb6191cc88
2 changed files with 6 additions and 0 deletions

View File

@@ -1781,6 +1781,11 @@ namespace nana
widget.caption("nana treebox");
}
void trigger::detached()
{
impl_->data.graph = nullptr;
}
void trigger::refresh(graph_reference)
{
//Don't reset the scroll and update the window