summaryrefslogtreecommitdiffstats
path: root/qt-models/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/models.cpp')
-rw-r--r--qt-models/models.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-models/models.cpp b/qt-models/models.cpp
index 5d96d4da4..87dfe0cd5 100644
--- a/qt-models/models.cpp
+++ b/qt-models/models.cpp
@@ -7,6 +7,7 @@
*/
#include "qt-models/models.h"
#include "core/qthelper.h"
+#include "core/gettextfromc.h"
#include <QLocale>
@@ -83,7 +84,7 @@ void DiveTypeSelectionModel::repopulate()
{
QStringList modes = QStringList();
for (int i = 0; i < FREEDIVE; i++)
- modes.append(QString(tr(divemode_text_ui[i])));
+ modes.append(gettextFromC::instance()->tr(divemode_text_ui[i]));
setStringList(modes);
}