summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-09-30 19:33:33 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-30 19:26:46 -0400
commit63a2307cfb586ba555f6592897fa940ca7f0498a (patch)
treef7fe0cebc1ff77cb9b1e9cb7b40c7f80aa0043f2 /qt-ui
parent0847447cda75a0d932b682e08ffd0ef73affb046 (diff)
downloadsubsurface-63a2307cfb586ba555f6592897fa940ca7f0498a.tar.gz
Better way to handle the tooltip for dive sites
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/locationinformation.cpp8
1 files 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;
}