mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Mobile: derive the index from the dive id
The previous code assumes that both the vertical dive list and the list of dive details which allows the horizontal swiping from dive to dive are based on the same model. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									2637106309
								
							
						
					
					
						commit
						b01e9fb0a8
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -229,9 +229,9 @@ Kirigami.Page { | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	function showDiveIndex(index) { | 	function showDiveIndex(id) { | ||||||
| 		currentIndex = index; | 		currentIndex = diveModel.getIdxForId(id); | ||||||
| 		diveDetailsListView.positionViewAtIndex(index, ListView.End); | 		diveDetailsListView.positionViewAtIndex(currentIndex, ListView.End); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	function endEditMode() { | 	function endEditMode() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue