fix issue that event handler remains after closing

This commit is contained in:
Jinhao
2016-09-13 01:24:47 +08:00
parent 6eece91fce
commit 318f0ec570
2 changed files with 23 additions and 4 deletions

View File

@@ -442,8 +442,6 @@ namespace nana
bool basic_window::set_events(const std::shared_ptr<general_events>& p)
{
if (annex.events_ptr)
return false;
annex.events_ptr = p;
return true;
}