mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
627de38c01
This makes Subsurface usable faster for those without a good internet connection when they are opening an older data file. While parsing, we are only feeding an vector of locations, after the parsing is done, we traverse the vector searching for the information on the web. I need to also add a way to stop if there`s no internet connection - but this will be another patch. Also, fixed two small memory leaks from the old imp. [Dirk Hohndel: cleaned up the whitespace mess] Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
17 lines
321 B
C++
17 lines
321 B
C++
#ifndef DIVESITEHELPERS_H
|
|
#define DIVESITEHELPERS_H
|
|
|
|
#include "units.h"
|
|
#include <QThread>
|
|
|
|
class ReverseGeoLoockupThread : public QThread {
|
|
Q_OBJECT
|
|
public:
|
|
static ReverseGeoLoockupThread *instance();
|
|
void run() Q_DECL_OVERRIDE;
|
|
|
|
private:
|
|
ReverseGeoLoockupThread(QObject *parent = 0);
|
|
};
|
|
|
|
#endif // DIVESITEHELPERS_H
|