mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Revert "cleanup: localize global variable"
This reverts commit fc7729eb78.
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>
This commit is contained in:
parent
b4ddcbfb63
commit
ceaf26d198
1 changed files with 2 additions and 2 deletions
|
|
@ -33,6 +33,8 @@
|
||||||
#define PATH_MAX 4096
|
#define PATH_MAX 4096
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
struct dive_table gps_location_table;
|
||||||
|
|
||||||
// TODO: This looks like should be ported to C code. or a big part of it.
|
// 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)
|
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 *d;
|
||||||
struct dive_site *ds;
|
struct dive_site *ds;
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
struct dive_table gps_location_table;
|
|
||||||
memset(&gps_location_table, 0, sizeof(dive_table));
|
|
||||||
(void)changed;
|
(void)changed;
|
||||||
clear_table(&gps_location_table);
|
clear_table(&gps_location_table);
|
||||||
QByteArray url = tr("Webservice").toUtf8();
|
QByteArray url = tr("Webservice").toUtf8();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue