From 51a87722e8a4395ac2836c2e26a66d6534a0c468 Mon Sep 17 00:00:00 2001 From: Melvin Hadasht Date: Fri, 17 May 2002 11:35:26 +0000 Subject: [PATCH] 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. --- ChangeLog.claws | 7 +++++++ configure.in | 2 +- src/prefs_actions.c | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index 9130c5d57..b600e4155 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -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 diff --git a/configure.in b/configure.in index 01b499c04..de89d8189 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/prefs_actions.c b/src/prefs_actions.c index 2b27771fb..3fa71081f 100644 --- a/src/prefs_actions.c +++ b/src/prefs_actions.c @@ -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; -- 2.25.1