mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Planner: make sure start time is reflected in diveplan and displayed_dive
Fixes #709 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									642ad1e0fe
								
							
						
					
					
						commit
						1620f7ec0c
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -832,6 +832,7 @@ void DivePlannerPointsModel::setStartDate(const QDate &date) | |||
| { | ||||
| 	startTime.setDate(date); | ||||
| 	diveplan.when = startTime.toTime_t(); | ||||
| 	displayed_dive.when = diveplan.when; | ||||
| 	emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1)); | ||||
| } | ||||
| 
 | ||||
|  | @ -839,6 +840,7 @@ void DivePlannerPointsModel::setStartTime(const QTime &t) | |||
| { | ||||
| 	startTime.setTime(t); | ||||
| 	diveplan.when = startTime.toTime_t(); | ||||
| 	displayed_dive.when = diveplan.when; | ||||
| 	emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1)); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue