From 392973dbe4f15bb1e765a32e6573dc1466bedb0c Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 17 Jul 2015 14:01:17 -0300 Subject: Remove buggy code This code is already implemented as a signal-connection on the maintab.cpp / globe.cpp Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'qt-ui') 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; } -- cgit v1.2.3-70-g09d2