Don't display a disabled placefile when renaming

This commit is contained in:
Dan Paulat 2023-09-09 12:20:17 -05:00
parent 0badf01a92
commit 1a9e87ba07

View file

@ -255,7 +255,8 @@ void MapWidgetImpl::ConnectSignals()
enabledPlacefiles_.erase(oldName); enabledPlacefiles_.erase(oldName);
RemovePlacefileLayer(oldName); RemovePlacefileLayer(oldName);
} }
if (!enabledPlacefiles_.contains(newName)) if (!enabledPlacefiles_.contains(newName) &&
placefileManager_->placefile_enabled(newName))
{ {
// Add new placefile layer // Add new placefile layer
enabledPlacefiles_.emplace(newName); enabledPlacefiles_.emplace(newName);