mirror of
				https://github.com/keepassxreboot/keepassxc.git
				synced 2025-10-31 14:39:17 -04:00 
			
		
		
		
	
							parent
							
								
									17dc022e15
								
							
						
					
					
						commit
						40ee047ef0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -337,7 +337,7 @@ struct TagsEdit::Impl | |||
|         assert(i < tags.size()); | ||||
|         auto occurrencesOfCurrentText = | ||||
|             std::count_if(tags.cbegin(), tags.cend(), [this](const auto& tag) { return tag.text == currentText(); }); | ||||
|         if (currentText().isEmpty() || occurrencesOfCurrentText > 1) { | ||||
|         if (tags.size() > 1 && (currentText().isEmpty() || occurrencesOfCurrentText > 1)) { | ||||
|             tags.erase(std::next(tags.begin(), std::ptrdiff_t(editing_index))); | ||||
|             if (editing_index <= i) { // Do we shift positions after `i`?
 | ||||
|                 --i; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jonathan White
						Jonathan White