mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
faa1c28100
commit
260ea879e5
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue