aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/filtermodels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/filtermodels.cpp b/qt-ui/filtermodels.cpp
index 01d2592f8..aaace6586 100644
--- a/qt-ui/filtermodels.cpp
+++ b/qt-ui/filtermodels.cpp
@@ -134,7 +134,7 @@ void TagFilterModel::repopulate()
if (g_tag_list == NULL)
return;
QStringList list;
- struct tag_entry *current_tag_entry = g_tag_list->next;
+ struct tag_entry *current_tag_entry = g_tag_list;
while (current_tag_entry != NULL) {
if (count_dives_with_tag(current_tag_entry->tag->name) > 0)
list.append(QString(current_tag_entry->tag->name));