From 260ea879e5c574350cc966551d161df829306560 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 31 Jul 2015 22:25:43 +0200 Subject: Make debugging cleaner Don't try to connect the globe when NOMARBLE is active. Check exisistance before trying to open an image file. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 369a754bc..443837a47 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -463,7 +463,9 @@ void MainTab::updateDiveInfo(bool clear) // I don't like this code here - but globe() wasn't initialized on the constructor. { QListView *completerListview = qobject_cast(ui.location->completer()->popup()); +#ifndef NO_MARBLE connect(completerListview, SIGNAL(entered(QModelIndex)), GlobeGPS::instance(), SLOT(centerOnIndex(QModelIndex)), Qt::UniqueConnection); +#endif } EditMode rememberEM = editMode; -- cgit v1.2.3-70-g09d2