Enable building with NO_MARBLE again
This was broken in commit 7efa92406794 ("Transform GlobeGPS in a static
instance() class").
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
21d8d26da1
commit
3efafd1fde
@ -390,6 +390,12 @@ void GlobeGPS::centerOnIndex(const QModelIndex& idx)
|
||||
}
|
||||
#else
|
||||
|
||||
GlobeGPS *GlobeGPS::instance()
|
||||
{
|
||||
static GlobeGPS *self = new GlobeGPS();
|
||||
return self;
|
||||
}
|
||||
|
||||
GlobeGPS::GlobeGPS(QWidget *parent)
|
||||
{
|
||||
setText("MARBLE DISABLED AT BUILD TIME");
|
||||
|
||||
@ -63,7 +63,8 @@ slots:
|
||||
class GlobeGPS : public QLabel {
|
||||
Q_OBJECT
|
||||
public:
|
||||
GlobeGPS(QWidget *parent);
|
||||
GlobeGPS(QWidget *parent = 0);
|
||||
static GlobeGPS *instance();
|
||||
void reload();
|
||||
void repopulateLabels();
|
||||
void centerOnDiveSite(uint32_t uuid);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user