mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Use function emitDataChanged in diveplannermodel consistently
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
		
							parent
							
								
									337f82c876
								
							
						
					
					
						commit
						603e43f46e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -583,14 +583,14 @@ void DivePlannerPointsModel::setDecoMode(int mode)
 | 
			
		|||
	auto planner = SettingsObjectWrapper::instance()->planner_settings;
 | 
			
		||||
	planner->setDecoMode(deco_mode(mode));
 | 
			
		||||
	emit recreationChanged(mode == int(prefs.planner_deco_mode));
 | 
			
		||||
	emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1));
 | 
			
		||||
	emitDataChanged();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void DivePlannerPointsModel::setSafetyStop(bool value)
 | 
			
		||||
{
 | 
			
		||||
	auto planner = SettingsObjectWrapper::instance()->planner_settings;
 | 
			
		||||
	planner->setSafetyStop(value);
 | 
			
		||||
	emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1));
 | 
			
		||||
	emitDataChanged();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void DivePlannerPointsModel::setReserveGas(int reserve)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue