mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	QML UI: don't populate hints texts when adding dive
If we don't have values for the HintsTextEdit fields, don't show any values. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									525cd4c9e3
								
							
						
					
					
						commit
						ee4ae49d37
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -87,7 +87,7 @@ TextField {
 | 
			
		|||
			id: hintsView
 | 
			
		||||
			anchors.fill: parent
 | 
			
		||||
			clip: true
 | 
			
		||||
			onCurrentIndexChanged: root.text = model[currentIndex];
 | 
			
		||||
			onCurrentIndexChanged: root.text = currentIndex === -1 ? "" : model[currentIndex];
 | 
			
		||||
 | 
			
		||||
			delegate: Kirigami.BasicListItem {
 | 
			
		||||
				label: modelData
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue