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

Loading…
Cancel
Save