Browse Source

Import/Export fixes

* Export should always be enabled since you can export default tile set
* Fix Select All/None problem
QGC4.4
DonLakeFlyer 7 years ago
parent
commit
5ee584a5ee
  1. 10
      src/QtLocationPlugin/QMLControl/OfflineMap.qml

10
src/QtLocationPlugin/QMLControl/OfflineMap.qml

@ -1005,7 +1005,6 @@ QGCView { @@ -1005,7 +1005,6 @@ QGCView {
text: qsTr("Export")
width: _buttonSize
visible: QGroundControl.corePlugin.options.showOfflineMapExport
enabled: QGroundControl.mapEngineManager.tileSets.count > 1
onClicked: showExport()
}
QGCButton {
@ -1041,8 +1040,13 @@ QGCView { @@ -1041,8 +1040,13 @@ QGCView {
delegate: QGCCheckBox {
text: object.name
checked: object.selected
onClicked: {
object.selected = checked
onClicked: object.selected = checked
Connections {
// This connection should theoretically not be needed since the `checked: object.selected` binding should work.
// But for some reason when the user clicks the check box taht binding breaks. Which in turns causes
// Select All/None to update the internal state but check box visible state is out of sync
target: object
onSelectedChanged: checked = object.selected
}
}
}

Loading…
Cancel
Save