summaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-07-17 14:01:17 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-17 10:25:12 -0700
commit392973dbe4f15bb1e765a32e6573dc1466bedb0c (patch)
treebbe1c06b422d6f785948535af0a5f9b6429ba752 /qt-ui/modeldelegates.cpp
parent5d12723656c6643ff26f309442aa0b470f32d100 (diff)
downloadsubsurface-392973dbe4f15bb1e765a32e6573dc1466bedb0c.tar.gz
Remove buggy code
This code is already implemented as a signal-connection on the maintab.cpp / globe.cpp Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r--qt-ui/modeldelegates.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index 848c66fa8..91b6c6efd 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -510,13 +510,6 @@ void LocationFilterDelegate::paint(QPainter *painter, const QStyleOptionViewItem
if (index.row() < 2) {
diveSiteName = index.data().toString();
bottomText = index.data(Qt::ToolTipRole).toString();
-#ifndef NO_MARBLE
- if ((option.state & QStyle::State_HasFocus)) {
- // we call this even if the displayed dive site has no GPS data
- // so that the globe appropriately zooms out...
- MainWindow::instance()->globe()->centerOnDiveSite(&displayed_dive_site);
- }
-#endif
goto print_part;
}