From 1a9e87ba079a724c9211e3bde2c1330b0f4abb22 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sat, 9 Sep 2023 12:20:17 -0500 Subject: [PATCH] Don't display a disabled placefile when renaming --- scwx-qt/source/scwx/qt/map/map_widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scwx-qt/source/scwx/qt/map/map_widget.cpp b/scwx-qt/source/scwx/qt/map/map_widget.cpp index a1cb05aa..12db4616 100644 --- a/scwx-qt/source/scwx/qt/map/map_widget.cpp +++ b/scwx-qt/source/scwx/qt/map/map_widget.cpp @@ -255,7 +255,8 @@ void MapWidgetImpl::ConnectSignals() enabledPlacefiles_.erase(oldName); RemovePlacefileLayer(oldName); } - if (!enabledPlacefiles_.contains(newName)) + if (!enabledPlacefiles_.contains(newName) && + placefileManager_->placefile_enabled(newName)) { // Add new placefile layer enabledPlacefiles_.emplace(newName);