[shotwell/shotwell-0.30] piwigo: Don't show success pane when not running



commit f55b1e1a44e2942f2f37403d74855da5be287bee
Author: Jens Georg <mail jensge org>
Date:   Fri Sep 7 19:10:21 2018 +0200

    piwigo: Don't show success pane when not running
    
    Fixes showing empty dialog pane and lots of criticals on the console

 plugins/shotwell-publishing/PiwigoPublishing.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/plugins/shotwell-publishing/PiwigoPublishing.vala 
b/plugins/shotwell-publishing/PiwigoPublishing.vala
index fcd0aeee..649f1358 100644
--- a/plugins/shotwell-publishing/PiwigoPublishing.vala
+++ b/plugins/shotwell-publishing/PiwigoPublishing.vala
@@ -864,6 +864,9 @@ public class PiwigoPublisher : Spit.Publishing.Publisher, GLib.Object {
         
         // TODO: should a message be displayed to the user if num_published is zero?
 
+        if (!is_running())
+            return;
+
         do_show_success_pane();
     }
     


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