[f-spot/FSPOT_0_6_0_STABLE] strip the leading comma
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] strip the leading comma
- Date: Wed, 26 Aug 2009 12:21:12 +0000 (UTC)
commit 7c2551d67fe1540f706c0019100768d0167b2dc6
Author: Stephane Delcroix <stephane delcroix org>
Date: Wed Aug 26 13:56:08 2009 +0200
strip the leading comma
fixes bgo#591452
src/SendEmail.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/SendEmail.cs b/src/SendEmail.cs
index 063c040..dbe58b8 100644
--- a/src/SendEmail.cs
+++ b/src/SendEmail.cs
@@ -301,7 +301,7 @@ namespace FSpot {
filters.Convert (request);
request.Preserve(request.Current);
- mail_attach.Append(attach_arg.ToString() + request.Current.ToString ());
+ mail_attach.Append(((i == 0 && attach_arg.ToString () == ",") ? "" : attach_arg.ToString()) + request.Current.ToString ());
// Mark the path for deletion
tmp_paths.Add (request.Current.LocalPath);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]