Browse Source

Use null instead of { }

{ } generates an empty object
QGC4.4
Don Gagne 10 years ago
parent
commit
d01987c17a
  1. 3
      src/ViewWidgets/ViewWidget.qml

3
src/ViewWidgets/ViewWidget.qml

@ -25,8 +25,9 @@ Rectangle { @@ -25,8 +25,9 @@ Rectangle {
}
onPluginDisconnected: {
pageLoader.sourceComponent = null
pageLoader.sourceComponent = disconnectedComponent
pageLoader.autopilot = {}
pageLoader.autopilot = null
}
}

Loading…
Cancel
Save