throw right exception

This commit is contained in:
Jinhao 2016-05-12 23:33:23 +08:00
parent 6b7f999a0e
commit ceff7c0c27

View File

@ -275,7 +275,7 @@ namespace detail
if (impl_->wd_register.available(owner)) if (impl_->wd_register.available(owner))
{ {
if (owner->flags.destroying) if (owner->flags.destroying)
throw std::logic_error("the specified owner is destory"); throw std::runtime_error("the specified owner is destory");
native = (category::flags::frame == owner->other.category ? native = (category::flags::frame == owner->other.category ?
owner->other.attribute.frame->container : owner->root_widget->root); owner->other.attribute.frame->container : owner->root_widget->root);