mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	CylindersModel: remove mark_dive_list_changed
Cylinder-editing is controlled by undo (either by saving a planned dive or by using the equipment tab). There is no point in setting the dive_list_changed flag. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									d02489f888
								
							
						
					
					
						commit
						a4a06c48bf
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -3,7 +3,6 @@
 | 
				
			||||||
#include "tankinfomodel.h"
 | 
					#include "tankinfomodel.h"
 | 
				
			||||||
#include "models.h"
 | 
					#include "models.h"
 | 
				
			||||||
#include "core/qthelper.h"
 | 
					#include "core/qthelper.h"
 | 
				
			||||||
#include "core/divelist.h" // for mark_divelist_changed()
 | 
					 | 
				
			||||||
#include "core/color.h"
 | 
					#include "core/color.h"
 | 
				
			||||||
#include "qt-models/diveplannermodel.h"
 | 
					#include "qt-models/diveplannermodel.h"
 | 
				
			||||||
#include "core/gettextfromc.h"
 | 
					#include "core/gettextfromc.h"
 | 
				
			||||||
| 
						 | 
					@ -337,7 +336,6 @@ bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, in
 | 
				
			||||||
			QModelIndexList matches = tanks->match(tanks->index(0, 0), Qt::DisplayRole, cyl->type.description);
 | 
								QModelIndexList matches = tanks->match(tanks->index(0, 0), Qt::DisplayRole, cyl->type.description);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			cyl->type.size = string_to_volume(qPrintable(vString), cyl->type.workingpressure);
 | 
								cyl->type.size = string_to_volume(qPrintable(vString), cyl->type.workingpressure);
 | 
				
			||||||
			mark_divelist_changed(true);
 | 
					 | 
				
			||||||
			if (!matches.isEmpty())
 | 
								if (!matches.isEmpty())
 | 
				
			||||||
				tanks->setData(tanks->index(matches.first().row(), TankInfoModel::ML), cyl->type.size.mliter);
 | 
									tanks->setData(tanks->index(matches.first().row(), TankInfoModel::ML), cyl->type.size.mliter);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue