mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Desktop: remove edit-check in tag-widget completer
The tag-widget was only showing the completer if we were in edit mode. The edit mode does not exist anymore - therefore remove the check. Hopefully this has no unintended consequences, like the completer not disappearing when it should. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									27927f74a1
								
							
						
					
					
						commit
						b98ac90c43
					
				
					 1 changed files with 0 additions and 8 deletions
				
			
		|  | @ -89,14 +89,6 @@ void TagWidget::reparse() | ||||||
| 	if (pos.first >= 0 && pos.second > 0) | 	if (pos.first >= 0 && pos.second > 0) | ||||||
| 		currentText = text().mid(pos.first, pos.second - pos.first).trimmed(); | 		currentText = text().mid(pos.first, pos.second - pos.first).trimmed(); | ||||||
| 
 | 
 | ||||||
| 	/*
 |  | ||||||
| 	 * Do not show the completer when not in edit mode - basically |  | ||||||
| 	 * this returns when we are accepting or discarding the changes. |  | ||||||
| 	 */ |  | ||||||
| 	if (MainWindow::instance()->mainTab->isEditing() == false) { |  | ||||||
| 		return; |  | ||||||
| 	} |  | ||||||
| 
 |  | ||||||
| 	if (m_completer) { | 	if (m_completer) { | ||||||
| 		m_completer->setCompletionPrefix(currentText); | 		m_completer->setCompletionPrefix(currentText); | ||||||
| 		if (m_completer->completionCount() == 1) { | 		if (m_completer->completionCount() == 1) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue