diff options
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveEquipment.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveEquipment.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp index db9754140..af4dcbd44 100644 --- a/desktop-widgets/tab-widgets/TabDiveEquipment.cpp +++ b/desktop-widgets/tab-widgets/TabDiveEquipment.cpp @@ -108,13 +108,8 @@ void TabDiveEquipment::divesChanged(const QVector<dive *> &dives, DiveField fiel if (!current_dive || !dives.contains(current_dive)) return; - switch(field) { - case DiveField::SUIT: + if (field.suit) ui.suit->setText(QString(current_dive->suit)); - break; - default: - break; - } } void TabDiveEquipment::toggleTriggeredColumn() |