From 63a2307cfb586ba555f6592897fa940ca7f0498a Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 30 Sep 2015 19:33:33 -0300 Subject: Better way to handle the tooltip for dive sites Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index 6fb2cdbe8..0d3d66231 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -310,11 +310,9 @@ QVariant DiveLocationModel::data(const QModelIndex &index, int role) const case Qt::DisplayRole: return new_ds_value[index.row()]; case Qt::ToolTipRole: - if (same_string(displayed_dive_site.notes,"SubsurfaceWebservice")) - return "Update dive site name"; - else - return "Create a new dive site"; - return "Create a new dive site"; + return displayed_dive_site.uuid ? + tr("Create a new dive site, copying relevant information from the current dive.") : + tr("Create a new dive site with this name"); case Qt::DecorationRole: return plusIcon; } -- cgit v1.2.3-70-g09d2