Revision: 194 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=194&view=rev Author: frlan Date: 2008-10-01 22:59:25 +0000 (Wed, 01 Oct 2008)
Log Message: ----------- GeanySendMail: Removing of %r in case of it was entered at configuration dialog but feature was deactivated.
Modified Paths: -------------- trunk/geanysendmail/src/geanysendmail.c
Modified: trunk/geanysendmail/src/geanysendmail.c =================================================================== --- trunk/geanysendmail/src/geanysendmail.c 2008-10-01 22:58:32 UTC (rev 193) +++ trunk/geanysendmail/src/geanysendmail.c 2008-10-01 22:59:25 UTC (rev 194) @@ -185,8 +185,13 @@ p_ui->set_statusbar(FALSE, _("Filename placeholder not found. The executed command might have failed."));
if (use_address_dialog == TRUE && address != NULL) + { if (! p_utils->string_replace_all(cmd_str, "%r", address)) p_ui->set_statusbar(FALSE, _("Recipient address placeholder not found. The executed command might have failed.")); + } + else + /* Removes %r if option was not activ but was included into command */ + p_utils->string_replace_all(cmd_str, "%r", NULL);
command = g_string_free(cmd_str, FALSE); g_spawn_command_line_async(command, &error);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.