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



commit 5e0567126dabca550b5e0d548e7c8ac22850e8fa
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]