summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r--qt-ui/globe.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index 9662d88e2..bbd103432 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -32,14 +32,7 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0), edit
QStringList list = mtm.mapThemeIds();
QString subsurfaceDataPath;
QDir marble;
- bool foundGoogleMap = false;
- Q_FOREACH(const QString& theme, list){
- if (theme == "earth/googlesat/googlesat.dgml"){
- foundGoogleMap = true;
- break;
- }
- }
- if (!foundGoogleMap) {
+ if (!list.contains("earth/googlesat/googlesat.dgml")) {
subsurfaceDataPath = getSubsurfaceDataPath("marbledata");
if (subsurfaceDataPath != "") {
MarbleDirs::setMarbleDataPath(subsurfaceDataPath);