mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fix sorting by rating
In commit beb4ed38f264 ("Add a "sort role" for sorting the dive list")
Linus forgot to add a case for the rating value.
Now all columns sort correctly.
With this I think we can close the bug...
Fixes #111
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
			
			
This commit is contained in:
		
							parent
							
								
									bc48a4200f
								
							
						
					
					
						commit
						85e3a4ad29
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -837,6 +837,7 @@ QVariant DiveItem::data(int column, int role) const | |||
| 		switch (column) { | ||||
| 		case NR:		retVal = dive->number; break; | ||||
| 		case DATE:		retVal = (qulonglong) dive->when; break; | ||||
| 		case RATING:		retVal = dive->rating; break; | ||||
| 		case DEPTH:		retVal = dive->maxdepth.mm; break; | ||||
| 		case DURATION:		retVal = dive->duration.seconds; break; | ||||
| 		case TEMPERATURE:	retVal = dive->watertemp.mkelvin; break; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue