From ceff7c0c278ff3802d432fff3b8271c1f8669deb Mon Sep 17 00:00:00 2001 From: Jinhao Date: Thu, 12 May 2016 23:33:23 +0800 Subject: [PATCH] throw right exception --- source/gui/detail/window_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/detail/window_manager.cpp b/source/gui/detail/window_manager.cpp index 441a5ec5..0d173e0c 100644 --- a/source/gui/detail/window_manager.cpp +++ b/source/gui/detail/window_manager.cpp @@ -275,7 +275,7 @@ namespace detail if (impl_->wd_register.available(owner)) { 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 ? owner->other.attribute.frame->container : owner->root_widget->root);