[easytag] Avoid continual growth of TrackEntryComboModel



commit a7647f787df41313c73bf4323a6cb2fb33b4e67c
Author: Mathias Reineke <saihtam gmx net>
Date:   Mon Jul 8 09:59:36 2013 +0200

    Avoid continual growth of TrackEntryComboModel

 src/misc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index dd55b0d..af7d153 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -500,6 +500,9 @@ void Load_Track_List_To_UI (void)
     g_return_if_fail (ETCore->ETFileDisplayedList != NULL ||
                       TrackEntryComboModel != NULL);
 
+    /* Remove the entries in the list to avoid duplicates. */
+    gtk_list_store_clear (TrackEntryComboModel);
+
     /* Create list of tracks. */
     for (i = 1; i <= len; i++)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]