diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 7c4d40011..30c768c25 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -261,12 +261,18 @@ void MainTab::divesChanged(const QVector &dives, DiveField field) } if (field.divesite) updateDiveSite(current_dive); - if (field.tags) + if (field.tags) { + tagModel.updateModel(); // TODO: Don't do this here ui.tagWidget->setText(get_taglist_string(current_dive->tag_list)); - if (field.buddy) + } + if (field.buddy) { + buddyModel.updateModel(); // TODO: Don't do this here ui.buddy->setText(current_dive->buddy); - if (field.divemaster) + } + if (field.divemaster) { + diveMasterModel.updateModel(); // TODO: Don't do this here ui.divemaster->setText(current_dive->divemaster); + } // If duration or depth changed, the profile needs to be replotted if (field.duration || field.depth)