mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Cleanup: remove unnecessary remember/restoreSelection() pair
When accepting changes, the main tab refreshes the display in a remember/restoreSelection() pair. Since the display refresh doesn't lose selection, these calls can be removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									bddca1ecc9
								
							
						
					
					
						commit
						55ffd5d1b5
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -554,9 +554,7 @@ void MainTab::acceptChanges() | |||
| 		MainWindow::instance()->refreshDisplay(); | ||||
| 		MainWindow::instance()->graphics->replot(); | ||||
| 	} else { | ||||
| 		MainWindow::instance()->diveList->rememberSelection(); | ||||
| 		MainWindow::instance()->refreshDisplay(); | ||||
| 		MainWindow::instance()->diveList->restoreSelection(); | ||||
| 	} | ||||
| 	DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::NOTHING); | ||||
| 	MainWindow::instance()->diveList->verticalScrollBar()->setSliderPosition(scrolledBy); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue