summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-03 11:51:26 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-03 11:52:19 -0700
commitceaf26d198f9795fde5da43be6a904bc3c133a98 (patch)
treed3cc1fc4022be021ec32e6ab000d07f4b2bc7d81 /desktop-widgets
parentb4ddcbfb6375f2c5e72dca14e4085547ecd75af5 (diff)
downloadsubsurface-ceaf26d198f9795fde5da43be6a904bc3c133a98.tar.gz
Revert "cleanup: localize global variable"
This reverts commit fc7729eb78e7dae803546b3cc0011260e779a2e8. This caused the GPS workflow to break for Linus. Let's revert for 4.7.8 and figure out how to do this cleanup correctly, later. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/subsurfacewebservices.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp
index 31babff32..726e2540f 100644
--- a/desktop-widgets/subsurfacewebservices.cpp
+++ b/desktop-widgets/subsurfacewebservices.cpp
@@ -33,6 +33,8 @@
#define PATH_MAX 4096
#endif
+struct dive_table gps_location_table;
+
// TODO: This looks like should be ported to C code. or a big part of it.
bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile, const bool selected)
{
@@ -301,8 +303,6 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button)
struct dive *d;
struct dive_site *ds;
bool changed = false;
- struct dive_table gps_location_table;
- memset(&gps_location_table, 0, sizeof(dive_table));
(void)changed;
clear_table(&gps_location_table);
QByteArray url = tr("Webservice").toUtf8();