src/prefs_actions.c
authorMelvin Hadasht <melvin.hadasht@free.fr>
Fri, 17 May 2002 11:35:26 +0000 (11:35 +0000)
committerMelvin Hadasht <melvin.hadasht@free.fr>
Fri, 17 May 2002 11:35:26 +0000 (11:35 +0000)
Fixed bug where using %F not at the end of the command
resulted in an additional empty argument being created.
Thanks to Darko Koruga for reporting the bug.

ChangeLog.claws
configure.in
src/prefs_actions.c

index 9130c5d..b600e41 100644 (file)
@@ -1,3 +1,10 @@
+2002-05-17 [melvin]    0.7.5claws30
+
+       * src/prefs_actions.c
+               Fixed bug where using %F not at the end of the command 
+               resulted in an additional empty argument being created.
+               Thanks to Darko Koruga for reporting the bug.
+
 2002-05-17 [melvin]    0.7.5claws29
 
        * po/fr.po
index 01b499c..de89d81 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws29
+EXTRA_VERSION=claws30
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 2b27771..3fa7108 100644 (file)
@@ -592,7 +592,8 @@ static gchar *parse_action_cmd              (gchar *action,
                                        msg = gtk_ctree_node_get_row_data(ctree,
                                              GTK_CTREE_NODE(cur->data));
                                        cmd = parse_append_filename(cmd, msg);
-                                       cmd = g_string_append_c(cmd, ' ');
+                                       if (cur->next)
+                                               cmd = g_string_append_c(cmd, ' ');
                                     }
                                     p++;
                                     break;