QmlDesigner.DebugView: only show status if enabled

Change-Id: Idd8738409965251767a5fbd26421acb32b54dd15
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Thomas Hartmann
2013-10-31 14:21:25 +01:00
parent 61dbd2011c
commit 97bda33341

View File

@@ -69,7 +69,8 @@ void DebugView::modelAttached(Model *model)
{
log(tr("Model attached"), tr("FileName %1").arg(model->fileUrl().toLocalFile()));
m_debugViewWidget->setDebugViewEnabled(isDebugViewEnabled());
qDebug() << "enabled: " << isDebugViewEnabled();
if (isDebugViewEnabled())
qDebug() << tr("DebugView is enabled");
AbstractView::modelAttached(model);
}