diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-22 13:25:58 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-24 09:51:02 -0800 |
commit | ee5a1564980acfa9c3aa0dbf457f4bdce0efbfcd (patch) | |
tree | 1bf11b8fb2c469b9be8d93e9fc71e68f52c229fc /desktop-widgets/locationinformation.cpp | |
parent | 1ecd5065a0f821bb9406b5f651ebf6db5d6c2040 (diff) | |
download | subsurface-ee5a1564980acfa9c3aa0dbf457f4bdce0efbfcd.tar.gz |
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>
Diffstat (limited to 'desktop-widgets/locationinformation.cpp')
-rw-r--r-- | desktop-widgets/locationinformation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp index 1ee848e83..e97a189bd 100644 --- a/desktop-widgets/locationinformation.cpp +++ b/desktop-widgets/locationinformation.cpp @@ -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; |