mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	GPS: use applyGpsLocation::applyLocations from core
Fixes a big duplication of code. The code to apply GPS locations from the location service was already in core, and used from mobile, but there was an almost literal copy in the desktop code. See also commits6f42ab46daandee9531f76e, where only one side of the duplicated code was fixed. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
		
							parent
							
								
									e762d2a23e
								
							
						
					
					
						commit
						70e0e80de5
					
				
					 2 changed files with 3 additions and 115 deletions
				
			
		|  | @ -111,7 +111,8 @@ MainWindow::MainWindow() : QMainWindow(), | |||
| 	actionPreviousDive(0), | ||||
| 	helpView(0), | ||||
| 	state(VIEWALL), | ||||
| 	survey(0) | ||||
| 	survey(0), | ||||
| 	locationProvider(new GpsLocation(nullptr, this)) | ||||
| { | ||||
| 	Q_ASSERT_X(m_Instance == NULL, "MainWindow", "MainWindow recreated!"); | ||||
| 	m_Instance = this; | ||||
|  | @ -826,7 +827,6 @@ void MainWindow::on_actionDownloadDC_triggered() | |||
| void MainWindow::on_actionDownloadWeb_triggered() | ||||
| { | ||||
| 	SubsurfaceWebServices dlg(this); | ||||
| 
 | ||||
| 	dlg.exec(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue