mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Enable building with NO_MARBLE again
This was broken in commit 7efa924067
("Transform GlobeGPS in a static
instance() class").
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
21d8d26da1
commit
3efafd1fde
2 changed files with 8 additions and 1 deletions
|
@ -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…
Reference in a new issue