mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Don't force the DiveListView to be a tree when reloading
We should keep whatever view the user last used. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									9383693928
								
							
						
					
					
						commit
						eaa0d647b7
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -67,7 +67,7 @@ void MainWindow::refreshDisplay() | |||
| { | ||||
| 	ui.InfoWidget->reload(); | ||||
| 	ui.globe->reload(); | ||||
| 	ui.ListWidget->reload(DiveTripModel::TREE); | ||||
| 	ui.ListWidget->reload(DiveTripModel::CURRENT); | ||||
| 	ui.ListWidget->setFocus(); | ||||
| 	WSInfoModel *wsim = WSInfoModel::instance(); | ||||
| 	wsim->updateInfo(); | ||||
|  | @ -835,7 +835,6 @@ void MainWindow::editCurrentDive() | |||
| 		ui.InfoWidget->enableEdition(MainTab::MANUALLY_ADDED_DIVE); | ||||
| 	} | ||||
| 	else if (defaultDC == tr("Simulated Dive")){ | ||||
| 		 | ||||
| 		// this looks like something is missing here
 | ||||
| 	} | ||||
| 	 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue