mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix an error around translation of dive modes in the UI
This fixes an mistake introduced in
3d1072f886
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
a6608f1b9f
commit
fcf6b819d9
8 changed files with 14 additions and 14 deletions
|
|
@ -252,7 +252,7 @@ QVariant DivePlannerPointsModel::data(const QModelIndex &index, int role) const
|
|||
else
|
||||
return p.time / 60;
|
||||
case DIVEMODE:
|
||||
return QString(divemode_text[p.divemode]);
|
||||
return QString(tr(divemode_text_ui[p.divemode]));
|
||||
case GAS:
|
||||
/* Check if we have the same gasmix two or more times
|
||||
* If yes return more verbose string */
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ void DiveTypeSelectionModel::repopulate()
|
|||
{
|
||||
QStringList modes = QStringList();
|
||||
for (int i = 0; i < FREEDIVE; i++)
|
||||
modes.append(QString(divemode_text[i]));
|
||||
modes.append(QString(tr(divemode_text_ui[i])));
|
||||
setStringList(modes);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue