mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Do not mess with dive location automatically
This might be what the user wanted, but also might not be it. So wait for the user to request it manually. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
35a4ef88be
commit
7071bf0e23
2 changed files with 0 additions and 6 deletions
|
@ -1167,7 +1167,6 @@ static void gps_location(char *buffer, struct dive_site *ds)
|
|||
|
||||
/* this is in qthelper.cpp, so including the .h file is a pain */
|
||||
extern const char *printGPSCoords(int lat, int lon);
|
||||
extern void add_geo_information_for_lookup(degrees_t latitude, degrees_t longitude, uint32_t uuid);
|
||||
|
||||
static void gps_in_dive(char *buffer, struct dive *dive)
|
||||
{
|
||||
|
@ -1213,8 +1212,6 @@ static void gps_in_dive(char *buffer, struct dive *dive)
|
|||
ds->longitude = longitude;
|
||||
}
|
||||
}
|
||||
if (ds && (!ds->notes || strstr(ds->notes, "countrytag:") == NULL))
|
||||
add_geo_information_for_lookup(latitude, longitude, dive->dive_site_uuid);
|
||||
}
|
||||
|
||||
static void add_dive_site(char *ds_name, struct dive *dive)
|
||||
|
|
|
@ -1542,9 +1542,6 @@ void MainWindow::loadFiles(const QStringList fileNames)
|
|||
addRecentFile(fileNames);
|
||||
removeRecentFile(failedParses);
|
||||
|
||||
// searches for geo lookup information in a thread so it doesn`t
|
||||
// freezes the ui.
|
||||
ReverseGeoLookupThread::instance()->start();
|
||||
|
||||
refreshDisplay();
|
||||
ui.actionAutoGroup->setChecked(autogroup);
|
||||
|
|
Loading…
Add table
Reference in a new issue