Commit d771741d authored by Don Gagne's avatar Don Gagne

Better console output

parent b8e67980
...@@ -119,9 +119,9 @@ FactPanel { ...@@ -119,9 +119,9 @@ FactPanel {
} }
} }
function __checkForEarlyDialog() { function __checkForEarlyDialog(title) {
if (!completedSignalled) { 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 { ...@@ -131,7 +131,7 @@ FactPanel {
/// @param charWidth Width of dialog in characters (-1 for full parent width) /// @param charWidth Width of dialog in characters (-1 for full parent width)
/// @param buttons Buttons to show in dialog using StandardButton enum /// @param buttons Buttons to show in dialog using StandardButton enum
function showDialog(component, title, charWidth, buttons) { function showDialog(component, title, charWidth, buttons) {
if (__checkForEarlyDialog()) { if (__checkForEarlyDialog(title)) {
return return
} }
...@@ -150,7 +150,7 @@ FactPanel { ...@@ -150,7 +150,7 @@ FactPanel {
} }
function showMessage(title, message, buttons) { function showMessage(title, message, buttons) {
if (__checkForEarlyDialog()) { if (__checkForEarlyDialog(title)) {
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment