mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Do not show 'trash' icon for deco stops.
Besides not deleting them, we shouldn't offer the icon for it. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									221b1a9e01
								
							
						
					
					
						commit
						e7f764b090
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -350,8 +350,8 @@ int DivePlannerPointsModel::columnCount(const QModelIndex &parent) const | |||
| 
 | ||||
| QVariant DivePlannerPointsModel::data(const QModelIndex &index, int role) const | ||||
| { | ||||
| 	divedatapoint p = divepoints.at(index.row()); | ||||
| 	if (role == Qt::DisplayRole) { | ||||
| 		divedatapoint p = divepoints.at(index.row()); | ||||
| 		switch (index.column()) { | ||||
| 		case CCSETPOINT: | ||||
| 			return (double)p.po2 / 1000; | ||||
|  | @ -370,7 +370,7 @@ QVariant DivePlannerPointsModel::data(const QModelIndex &index, int role) const | |||
| 	} else if (role == Qt::DecorationRole) { | ||||
| 		switch (index.column()) { | ||||
| 		case REMOVE: | ||||
| 			return QIcon(":trash"); | ||||
| 			return p.entered ? QIcon(":trash") : QVariant(); | ||||
| 		} | ||||
| 	} else if (role == Qt::FontRole) { | ||||
| 		if (divepoints.at(index.row()).entered) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue