mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Globe: we always center on the current dive
Simplify the API (we'll take advantage of this in the next commit). We always center the globe on the current dive, so no point in passing that dive in. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									a209dfbfd5
								
							
						
					
					
						commit
						2bc76beb65
					
				
					 5 changed files with 6 additions and 5 deletions
				
			
		|  | @ -343,7 +343,7 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button) | |||
| 		if (merge_locations_into_dives()) { | ||||
| 			mark_divelist_changed(true); | ||||
| 			MainWindow::instance()->globe()->repopulateLabels(); | ||||
| 			MainWindow::instance()->globe()->centerOn(current_dive); | ||||
| 			MainWindow::instance()->globe()->centerOnCurrentDive(); | ||||
| 			MainWindow::instance()->information()->updateDiveInfo(selected_dive); | ||||
| 		} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue