From f4b35f67f653c3be6a2e9bbae2c552ab898f5fc6 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 30 Mar 2024 14:00:30 +0100 Subject: [PATCH] Don't "untranslate" cylinder names As far as I can see there are no translation strings for the cylinder names, so there is no point in translating them back. Signed-off-by: Berthold Stoeger --- commands/command_edit.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/commands/command_edit.cpp b/commands/command_edit.cpp index cd767c660..2a5512e92 100644 --- a/commands/command_edit.cpp +++ b/commands/command_edit.cpp @@ -1289,14 +1289,7 @@ EditCylinder::EditCylinder(int index, cylinder_t cylIn, EditCylinderType typeIn, else setText(Command::Base::tr("Edit cylinder (%n dive(s))", "", dives.size())); - // Try to untranslate the cylinder type QString description = cylIn.type.description; - for (int i = 0; i < tank_info_table.nr; ++i) { - if (gettextFromC::tr(tank_info_table.infos[i].name) == description) { - description = tank_info_table.infos[i].name; - break; - } - } // The base class copied the cylinders for us, let's edit them for (int i = 0; i < (int)indexes.size(); ++i) {