mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	desktop: don't update models in MainWindow::refreshDisplay()
The models should now properly reset themselves if data in the core changes. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									fb6210a99a
								
							
						
					
					
						commit
						1cd9229ae0
					
				
					 2 changed files with 3 additions and 5 deletions
				
			
		|  | @ -405,11 +405,9 @@ MainWindow *MainWindow::instance() | |||
| } | ||||
| 
 | ||||
| // This gets called after one or more dives were added, edited or downloaded for a dive computer
 | ||||
| void MainWindow::refreshDisplay(bool doRecreateDiveList) | ||||
| void MainWindow::refreshDisplay() | ||||
| { | ||||
| 	mainTab->reload(); | ||||
| 	if (doRecreateDiveList) | ||||
| 		diveList->reload(); | ||||
| 
 | ||||
| 	setApplicationState(ApplicationState::Default); | ||||
| 	diveList->setEnabled(true); | ||||
|  | @ -782,7 +780,7 @@ void MainWindow::planCanceled() | |||
| 	// while planning we might have modified the displayed_dive
 | ||||
| 	// let's refresh what's shown on the profile
 | ||||
| 	refreshProfile(); | ||||
| 	refreshDisplay(false); | ||||
| 	refreshDisplay(); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::planCreated() | ||||
|  |  | |||
|  | @ -158,7 +158,7 @@ public | |||
| slots: | ||||
| 	void turnOffNdlTts(); | ||||
| 	void readSettings(); | ||||
| 	void refreshDisplay(bool doRecreateDiveList = true); | ||||
| 	void refreshDisplay(); | ||||
| 	void showProfile(); | ||||
| 	void refreshProfile(); | ||||
| 	void editCurrentDive(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue