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)
|
if(m_draggingWidget == widget)
|
||||||
updateDraggingWidget(nullptr);
|
updateDraggingWidget(nullptr);
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef NDEBUG
|
||||||
if(widget == m_rootWidget || !m_rootWidget)
|
if(widget == m_rootWidget || !m_rootWidget)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ UIWidget::UIWidget()
|
||||||
UIWidget::~UIWidget()
|
UIWidget::~UIWidget()
|
||||||
{
|
{
|
||||||
assert(!g_app.isTerminated());
|
assert(!g_app.isTerminated());
|
||||||
#ifdef DEBUG
|
#ifndef NDEBUG
|
||||||
if(!m_destroyed)
|
if(!m_destroyed)
|
||||||
g_logger.warning(stdext::format("widget '%s' was not explicitly destroyed", m_id));
|
g_logger.warning(stdext::format("widget '%s' was not explicitly destroyed", m_id));
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue