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 <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
committed by
Dirk Hohndel
parent
faa1c28100
commit
260ea879e5
@@ -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<QListView*>(ui.location->completer()->popup());
|
||||
#ifndef NO_MARBLE
|
||||
connect(completerListview, SIGNAL(entered(QModelIndex)), GlobeGPS::instance(), SLOT(centerOnIndex(QModelIndex)), Qt::UniqueConnection);
|
||||
#endif
|
||||
}
|
||||
|
||||
EditMode rememberEM = editMode;
|
||||
|
||||
Reference in New Issue
Block a user