From 2c4ccc04bd384090917d7d17221012611426edb3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 5 Oct 2013 09:48:26 -0700 Subject: Parse GPS text in C++ and re-implement GPS changed check This is SO MUCH easier then the convoluted and fragile C / glib code it replaces. Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index b19638b69..fd40bed86 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -14,6 +14,7 @@ #include "globe.h" #include "completionmodels.h" #include "diveplanner.h" +#include "qthelper.h" #include #include @@ -695,13 +696,8 @@ void MainTab::on_notes_textChanged() void MainTab::on_coordinates_textChanged(const QString& text) { - QByteArray textByteArray = text.toLocal8Bit(); bool gpsChanged = FALSE; - // EDIT_SELECTED_DIVES(gpsChanged |= gps_changed(mydive, NULL, textByteArray.data())); - // FIXME - // FIXME - // FIXME - // FIXME + EDIT_SELECTED_DIVES(gpsChanged |= gpsHasChanged(mydive, NULL, text)); if (gpsChanged) { markChangedWidget(ui.coordinates); } else { -- cgit v1.2.3-70-g09d2