mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	redraw profile (actually clean it) if no dive is selected
otherwise the previous selected dive is still visible in the profile view. clicking on edit crashs subsurface: null pointer dereference in editCurrentDive as it uses 'current_dive' which is null. Signed-off-by: Martin Gysel <me@bearsh.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									26dab9b5ce
								
							
						
					
					
						commit
						d9ca999a17
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -86,8 +86,8 @@ void MainWindow::current_dive_changed(int divenr) | |||
| 	if (divenr >= 0) { | ||||
| 		select_dive(divenr); | ||||
| 		ui.globe->centerOn(get_dive(selected_dive)); | ||||
| 		redrawProfile(); | ||||
| 	} | ||||
| 	redrawProfile(); | ||||
| 	ui.InfoWidget->updateDiveInfo(divenr); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue