Browse Source

Fix empty Plan File dropdown display

QGC4.4
DoinLakeFlyer 5 years ago
parent
commit
d40d3d29a9
  1. 6
      src/QmlControls/ToolStrip.qml

6
src/QmlControls/ToolStrip.qml

@ -30,8 +30,10 @@ Rectangle { @@ -30,8 +30,10 @@ Rectangle {
function simulateClick(buttonIndex) {
buttonIndex = buttonIndex + 1 // skip over title
toolStripColumn.children[buttonIndex].checked = true
toolStripColumn.children[buttonIndex].clicked()
if (!toolStripColumn.children[buttonIndex].checked) {
toolStripColumn.children[buttonIndex].checked = true
toolStripColumn.children[buttonIndex].clicked()
}
}
// Ensure we don't get narrower than content

Loading…
Cancel
Save