mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:40:05 +00:00 
			
		
		
		
	Don't display a disabled placefile when renaming
This commit is contained in:
		
							parent
							
								
									0badf01a92
								
							
						
					
					
						commit
						1a9e87ba07
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -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); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat