[gimp/gimp-2-8] Revert "app (gimprc): Delete dead assignment"



commit 741daccf0238ccbc022b4e047698be0480e0a5be
Author: Michael Natterer <mitch gimp org>
Date:   Thu May 17 01:14:22 2012 +0200

    Revert "app (gimprc): Delete dead assignment"
    
    This reverts commit d6d2a0bbd15f25d820631b4db6236f6a42b4b49c
    and allows more than one unknown gimprc token again.
    
    Fixes Bug 674096 - Strange behavior with gimprc
    (cherry picked from commit 8851ec0b6e463c070f513f3f44f40323da25934f)

 app/config/gimprc-unknown.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/app/config/gimprc-unknown.c b/app/config/gimprc-unknown.c
index fa9d4f7..4c5959d 100644
--- a/app/config/gimprc-unknown.c
+++ b/app/config/gimprc-unknown.c
@@ -115,7 +115,11 @@ gimp_rc_add_unknown_token (GimpConfig  *config,
   token->key   = g_strdup (key);
   token->value = g_strdup (value);
 
-  if (!last)
+  if (last)
+    {
+      last = g_slist_last (g_slist_append (last, token));
+    }
+  else
     {
       unknown_tokens = g_slist_append (NULL, token);
 



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