mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Minor cleanups
Improve readability of the code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									0eae59bcd2
								
							
						
					
					
						commit
						a1aa83fcfd
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -75,8 +75,8 @@ MobileComponents.Page { | |||
| 	} | ||||
| 
 | ||||
| 	function showDiveIndex(index) { | ||||
| 		diveDetailsListView.currentIndex = index; | ||||
| 		diveDetailsListView.positionViewAtIndex(diveDetailsListView.currentIndex, ListView.Beginning); | ||||
| 		currentIndex = index; | ||||
| 		diveDetailsListView.positionViewAtIndex(index, ListView.Beginning); | ||||
| 	} | ||||
| 	onWidthChanged: diveDetailsListView.positionViewAtIndex(diveDetailsListView.currentIndex, ListView.Beginning); | ||||
| 
 | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ MobileComponents.Page { | |||
| 
 | ||||
| 			// When clicked, the mode changes to details view | ||||
| 			onClicked: { | ||||
| 				diveListView.currentIndex = model.index | ||||
| 				diveListView.currentIndex = index | ||||
| 				detailsWindow.showDiveIndex(index); | ||||
| 				stackView.push(detailsWindow); | ||||
| 			} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue