Skip to content

Commit

Permalink
Better console output
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLakeFlyer committed Dec 6, 2015
1 parent b8e6798 commit d771741
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/QmlControls/QGCView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand All @@ -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
}

Expand All @@ -150,7 +150,7 @@ FactPanel {
}

function showMessage(title, message, buttons) {
if (__checkForEarlyDialog()) {
if (__checkForEarlyDialog(title)) {
return
}

Expand Down

0 comments on commit d771741

Please sign in to comment.