[easytag] Synchronize ETFileList pointer
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Synchronize ETFileList pointer
- Date: Sun, 29 Nov 2015 18:34:10 +0000 (UTC)
commit 9adaa19236a14206c05c24b957c765833a79d834
Author: David King <amigadave amigadave com>
Date: Fri Nov 13 19:00:28 2015 +0000
Synchronize ETFileList pointer
Ensure that sorting ETCore->ETFileDisplayedList, and possibly changing
the head pointer, results in the ETCore->ETFileList pointer being
updated to the head of the list.
https://bugzilla.gnome.org/show_bug.cgi?id=755069
src/file_list.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/file_list.c b/src/file_list.c
index 5c54873..70672db 100644
--- a/src/file_list.c
+++ b/src/file_list.c
@@ -1186,6 +1186,10 @@ et_displayed_file_list_set (GList *ETFileList)
g_settings_get_enum (MainSettings,
"sort-mode"));
+ /* Synchronize, so that the core file list pointer always points to the
+ * head of the list. */
+ ETCore->ETFileList = g_list_first (ETCore->ETFileList);
+
/* Should renums ETCore->ETFileDisplayedList only! */
et_displayed_file_list_renumber (ETCore->ETFileDisplayedList);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]