mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move GPX parsing into core
This shouldn't be part of the desktop UI code; there's still the issue that we really shouldn't hand code XML parsing, but I'll leave that for later. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1ecd5065a0
commit
ee5a156498
6 changed files with 177 additions and 160 deletions
|
@ -235,7 +235,7 @@ void LocationInformationWidget::on_GPSbutton_clicked()
|
|||
ImportGPS GPSDialog(this, fileName, &ui); // Create a GPS import QDialog
|
||||
GPSDialog.coords.start_dive = current_dive->when; // initialise
|
||||
GPSDialog.coords.end_dive = dive_endtime(current_dive);
|
||||
if (!GPSDialog.getCoordsFromFile()) { // Get coordinates from GPS file
|
||||
if (getCoordsFromGPXFile(&GPSDialog.coords, fileName) == 0) { // Get coordinates from GPS file
|
||||
GPSDialog.updateUI(); // If successful, put results in Dialog
|
||||
if (!GPSDialog.exec()) // and show QDialog
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue