summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-07 16:52:39 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-07 16:52:39 +0900
commitf2035bcd797cab0b6be180b160bca3e768ccb652 (patch)
tree0371585caf90d058594963e9c5f72806b6ffec33 /qt-ui/profilegraphics.cpp
parentf11b2274ec8921235ff534a6f138a3f69b69531a (diff)
downloadsubsurface-f2035bcd797cab0b6be180b160bca3e768ccb652.tar.gz
Don't translate the fake DC models
Since the model name is written into the XML file it has to be a literal string that isn't translated. Otherwise a datafile written in one locale behaves differently when opened by Subsurface under a different locale. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r--qt-ui/profilegraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 0eed723dd..d2fa701f7 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -394,7 +394,7 @@ void ProfileGraphicsView::addControlItems(struct dive *d)
//Put it into the lower right corner of the profile
QString defaultDC(d->dc.model);
- if (defaultDC == tr("manually added dive") || defaultDC == tr("Simulated Dive")) {
+ if (defaultDC == "manually added dive" || defaultDC == "planned dive") {
QAction *editAction = new QAction(QIcon(":edit"), tr("Edit"), this);
toolBar->addAction(editAction);
connect(editAction, SIGNAL(triggered()), mainWindow(), SLOT(editCurrentDive()));