mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Enable Marble Google Sat lookup when run as a MacOSX app
Following Dirk's commit ae2c132
, add support for custom google sat
data in a MacOSX app bundle
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f32e86eb32
commit
56eaea6993
2 changed files with 13 additions and 0 deletions
|
@ -49,6 +49,15 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0)
|
|||
foundGoogleMap = true;
|
||||
}
|
||||
}
|
||||
if (!foundGoogleMap) {
|
||||
// then check if we're running as an app on MacOSX
|
||||
execdir = QCoreApplication::applicationDirPath();
|
||||
marble = QDir(execdir.append("/../Resources/share/marbledata"));
|
||||
if (marble.exists()) {
|
||||
MarbleDirs::setMarbleDataPath(marble.absolutePath());
|
||||
foundGoogleMap = true;
|
||||
}
|
||||
}
|
||||
messageWidget = new KMessageWidget(this);
|
||||
messageWidget->setCloseButtonVisible(false);
|
||||
messageWidget->setHidden(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue