mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	mobile: when creating gps dive site use the new dive site name
The code was using the pre-editing dive site name, which appears weird. Not sure if that was on purpose. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									4cdea48926
								
							
						
					
					
						commit
						96d12f5a39
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -935,7 +935,7 @@ bool QMLManager::checkLocation(DiveSiteChange &res, const DiveObjectHelper &myDi
 | 
			
		|||
		if (parseGpsText(gps, &lat, &lon)) {
 | 
			
		||||
			qDebug() << "parsed GPS, using it";
 | 
			
		||||
			// there are valid GPS coordinates - just use them
 | 
			
		||||
			setupDivesite(res, d, ds, lat, lon, qPrintable(myDive.location));
 | 
			
		||||
			setupDivesite(res, d, ds, lat, lon, qPrintable(location));
 | 
			
		||||
		} else if (gps == GPS_CURRENT_POS) {
 | 
			
		||||
			qDebug() << "gps was our default text for no GPS";
 | 
			
		||||
			// user asked to use current pos
 | 
			
		||||
| 
						 | 
				
			
			@ -943,7 +943,7 @@ bool QMLManager::checkLocation(DiveSiteChange &res, const DiveObjectHelper &myDi
 | 
			
		|||
			if (gpsString != GPS_CURRENT_POS) {
 | 
			
		||||
				qDebug() << "but now I got a valid location" << gpsString;
 | 
			
		||||
				if (parseGpsText(qPrintable(gpsString), &lat, &lon))
 | 
			
		||||
					setupDivesite(res, d, ds, lat, lon, qPrintable(myDive.location));
 | 
			
		||||
					setupDivesite(res, d, ds, lat, lon, qPrintable(location));
 | 
			
		||||
			} else {
 | 
			
		||||
				appendTextToLog("couldn't get GPS location in time");
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue