mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Mobile: fix editing dive site
Commit 68961a169e made it impossible
to edit a dive site on mobile if a dive-site was already set: If
divesite was non-null, no actions were taken. Remove the conditional.
Reported-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
			
			
This commit is contained in:
		
							parent
							
								
									1e1d7513b2
								
							
						
					
					
						commit
						691d44dfd1
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -887,11 +887,9 @@ bool QMLManager::checkLocation(DiveObjectHelper *myDive, struct dive *d, QString | |||
| 	qDebug() << "checkLocation" << location << "gps" << gps << "dive had" << myDive->location() << "gps" << myDive->gas(); | ||||
| 	if (myDive->location() != location) { | ||||
| 		diveChanged = true; | ||||
| 		if (!ds) | ||||
| 			ds = get_dive_site_by_name(qPrintable(location)); | ||||
| 		if (!ds && !location.isEmpty()) { | ||||
| 		ds = get_dive_site_by_name(qPrintable(location)); | ||||
| 		if (!ds && !location.isEmpty()) | ||||
| 			ds = create_dive_site(qPrintable(location), d->when); | ||||
| 		} | ||||
| 		d->dive_site = ds; | ||||
| 	} | ||||
| 	// now make sure that the GPS coordinates match - if the user changed the name but not
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue