From 53ae83e03852d5e3ca27b30e58f83e41b3d605ee Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 29 Apr 2017 13:54:13 -0700 Subject: Fix call to tr in order to create translation strings Fixes #365 Signed-off-by: Dirk Hohndel --- desktop-widgets/divelistview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop-widgets/divelistview.cpp') 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; -- cgit v1.2.3-70-g09d2