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>
This commit is contained in:
Tomaz Canabrava 2015-07-17 14:01:17 -03:00 committed by Dirk Hohndel
parent 5d12723656
commit 392973dbe4

View file

@ -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;
}