Enable widget debugging
This commit is contained in:
parent
4566472662
commit
497902736c
|
@ -269,7 +269,7 @@ void UIManager::onWidgetDestroy(const UIWidgetPtr& widget)
|
|||
if(m_draggingWidget == widget)
|
||||
updateDraggingWidget(nullptr);
|
||||
|
||||
#ifndef DEBUG
|
||||
#ifndef NDEBUG
|
||||
if(widget == m_rootWidget || !m_rootWidget)
|
||||
return;
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ UIWidget::UIWidget()
|
|||
UIWidget::~UIWidget()
|
||||
{
|
||||
assert(!g_app.isTerminated());
|
||||
#ifdef DEBUG
|
||||
#ifndef NDEBUG
|
||||
if(!m_destroyed)
|
||||
g_logger.warning(stdext::format("widget '%s' was not explicitly destroyed", m_id));
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue