summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-29 13:54:13 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-29 13:59:02 -0700
commit53ae83e03852d5e3ca27b30e58f83e41b3d605ee (patch)
treec3f8f4c9fc33cf8732040a796f10f69e6dfd50e1 /desktop-widgets/divelistview.cpp
parent8525805f04af7bd1f99b3f46e4af4f752a668e1f (diff)
downloadsubsurface-53ae83e03852d5e3ca27b30e58f83e41b3d605ee.tar.gz
Fix call to tr in order to create translation strings
Fixes #365 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/divelistview.cpp')
-rw-r--r--desktop-widgets/divelistview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp
index fdc8bdd30..9c7c30578 100644
--- a/desktop-widgets/divelistview.cpp
+++ b/desktop-widgets/divelistview.cpp
@@ -584,8 +584,8 @@ static bool can_merge(const struct dive *a, const struct dive *b, enum asked_use
if (dive_endtime(a) + 30 * 60 < b->when) {
if (*have_asked == NOTYET) {
if (QMessageBox::warning(MainWindow::instance(),
- MainWindow::instance()->tr("Warning"),
- MainWindow::instance()->tr("Trying to merge dives with %1min interval in between").arg(
+ MainWindow::tr("Warning"),
+ MainWindow::tr("Trying to merge dives with %1min interval in between").arg(
(b->when - dive_endtime(a)) / 60),
QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Cancel) {
*have_asked = DONTMERGE;