mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fix another potential crash
Initialize diveplan.dp to NULL, so we know that we will bail in drawProfile, when the initial settingsChanged is fired. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									2b4c7be9d7
								
							
						
					
					
						commit
						6ff345731b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -1119,6 +1119,7 @@ int DivePlannerPointsModel::rowCount(const QModelIndex& parent) const | ||||||
| 
 | 
 | ||||||
| DivePlannerPointsModel::DivePlannerPointsModel(QObject* parent): QAbstractTableModel(parent), mode(NOTHING), stagingDive(NULL) | DivePlannerPointsModel::DivePlannerPointsModel(QObject* parent): QAbstractTableModel(parent), mode(NOTHING), stagingDive(NULL) | ||||||
| { | { | ||||||
|  | 	diveplan.dp = NULL; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| DivePlannerPointsModel* DivePlannerPointsModel::instance() | DivePlannerPointsModel* DivePlannerPointsModel::instance() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue