mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Only show tags in filter panel that are actually used
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
609036c570
commit
99531579e3
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ void TagFilterModel::repopulate()
|
|||
QStringList list;
|
||||
struct tag_entry *current_tag_entry = g_tag_list->next;
|
||||
while (current_tag_entry != NULL) {
|
||||
list.append(QString(current_tag_entry->tag->name));
|
||||
if (count_dives_with_tag(current_tag_entry->tag->name) > 0)
|
||||
list.append(QString(current_tag_entry->tag->name));
|
||||
current_tag_entry = current_tag_entry->next;
|
||||
}
|
||||
qSort(list);
|
||||
|
|
Loading…
Add table
Reference in a new issue