[easytag] Avoid continual growth of TrackEntryComboModel
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Avoid continual growth of TrackEntryComboModel
- Date: Tue, 9 Jul 2013 22:43:40 +0000 (UTC)
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]