[shotwell/shotwell-0.24] piwigo: Fix title and coments on uploaded files



commit f9a67e7f70b9c555922575a27526fd628d63705c
Author: Jens Georg <mail jensge org>
Date:   Wed Jan 4 12:45:42 2017 +0100

    piwigo: Fix title and coments on uploaded files
    
    Boolean is hard, part II.
    
    Regression introduced by 9d2b698023366e95baddbb677118a50e27bd6e8e
    
    Signed-off-by: Jens Georg <mail jensge org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776664

 plugins/shotwell-publishing/PiwigoPublishing.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/shotwell-publishing/PiwigoPublishing.vala 
b/plugins/shotwell-publishing/PiwigoPublishing.vala
index 63623ea..09ecf64 100644
--- a/plugins/shotwell-publishing/PiwigoPublishing.vala
+++ b/plugins/shotwell-publishing/PiwigoPublishing.vala
@@ -1666,7 +1666,7 @@ private class ImagesAddTransaction : Publishing.RESTSupport.UploadTransaction {
         string name = publishable.get_publishing_name();
         string comment = publishable.get_param_string(
             Spit.Publishing.Publishable.PARAM_STRING_COMMENT);
-        if (name != "") {
+        if (name == null || name == "") {
             name = publishable.get_param_string(
                 Spit.Publishing.Publishable.PARAM_STRING_BASENAME);
             add_argument("name", name);


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