Enable widget debugging

master
Eduardo Bart 12 years ago
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…
Cancel
Save