diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 6b43451f..628f9809 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -471,6 +471,7 @@ void GUI::createActions() _drawHillShadingAction = new QAction(tr("Show hillshading"), this); _drawHillShadingAction->setMenuRole(QAction::NoRole); _drawHillShadingAction->setCheckable(true); + _drawHillShadingAction->setEnabled(false); connect(_drawHillShadingAction, &QAction::triggered, _mapView, &MapView::drawHillShading); @@ -2248,6 +2249,7 @@ void GUI::updateMapDEMDownloadAction() { _downloadMapDEMAction->setEnabled(!_dem->url().isEmpty() && _map->usesDEM() && !_dem->checkTiles(_map->llBounds())); + _drawHillShadingAction->setEnabled(_map->usesDEM()); } void GUI::setTimeType(TimeType type)