mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Filter: move recalculation of filter from FilterModel to TripModel
The way this was accessed via Qt's model semantics was horrible. This gives arguably more readable code, since we don't have to shoehorn things through QVariants. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									9ffafbc326
								
							
						
					
					
						commit
						3003c6e1ee
					
				
					 8 changed files with 79 additions and 153 deletions
				
			
		|  | @ -423,7 +423,7 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList) | |||
| void MainWindow::recreateDiveList() | ||||
| { | ||||
| 	diveList->reload(); | ||||
| 	MultiFilterSortModel::instance()->myInvalidate(); | ||||
| 	DiveTripModelBase::instance()->recalculateFilter(); | ||||
| } | ||||
| 
 | ||||
| void MainWindow::configureToolbar() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue