Browse Source

fix offline map delete crash

QGC4.4
Holden 3 years ago committed by Patrick José Pereira
parent
commit
0c21ac2a21
  1. 3
      src/QtLocationPlugin/QMLControl/OfflineMap.qml

3
src/QtLocationPlugin/QMLControl/OfflineMap.qml

@ -410,8 +410,8 @@ Item { @@ -410,8 +410,8 @@ Item {
onAccepted: {
QGroundControl.mapEngineManager.deleteTileSet(offlineMapView._currentSelection)
deleteConfirmationDialog.hideDialog()
leaveInfoView()
showList()
}
}
}
@ -595,6 +595,7 @@ Item { @@ -595,6 +595,7 @@ Item {
text: qsTr("Delete")
width: ScreenTools.defaultFontPixelWidth * (infoView._extraButton ? 6 : 10)
onClicked: deleteConfirmationDialogComponent.createObject(mainWindow).open()
enabled: offlineMapView._currentSelection ? (offlineMapView._currentSelection.savedTileSize > 0) : false
}
QGCButton {
text: qsTr("Ok")

Loading…
Cancel
Save