From d771741d0d35648076e632f871e1379b336cac1c Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sat, 5 Dec 2015 16:04:29 -0800 Subject: [PATCH] Better console output --- src/QmlControls/QGCView.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/QmlControls/QGCView.qml b/src/QmlControls/QGCView.qml index 648d7e6..1536eff 100644 --- a/src/QmlControls/QGCView.qml +++ b/src/QmlControls/QGCView.qml @@ -119,9 +119,9 @@ FactPanel { } } - function __checkForEarlyDialog() { + function __checkForEarlyDialog(title) { if (!completedSignalled) { - console.warn("showDialog|Message called before QGCView.completed signalled") + console.warn("showDialog|Message called before QGCView.completed signalled", title) } } @@ -131,7 +131,7 @@ FactPanel { /// @param charWidth Width of dialog in characters (-1 for full parent width) /// @param buttons Buttons to show in dialog using StandardButton enum function showDialog(component, title, charWidth, buttons) { - if (__checkForEarlyDialog()) { + if (__checkForEarlyDialog(title)) { return } @@ -150,7 +150,7 @@ FactPanel { } function showMessage(title, message, buttons) { - if (__checkForEarlyDialog()) { + if (__checkForEarlyDialog(title)) { return }