[eog-plugins] postasa: Make sure cancelling the login dialog really cancels



commit 709565a8daf5d249db8212ec2ee25f1e0a6a17cc
Author: Felix Riemann <friemann gnome org>
Date:   Mon Jul 11 22:01:45 2011 +0200

    postasa: Make sure cancelling the login dialog really cancels
    
    Beforehand it would try to resume the file uploads resulting in
    warnings on the console.

 plugins/postasa/eog-postasa-plugin.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/postasa/eog-postasa-plugin.c b/plugins/postasa/eog-postasa-plugin.c
index 10ad21c..d00ca56 100644
--- a/plugins/postasa/eog-postasa-plugin.c
+++ b/plugins/postasa/eog-postasa-plugin.c
@@ -713,6 +713,9 @@ login_dialog_close (EogPostasaPlugin *plugin)
 static gboolean
 login_dialog_cancel_button_cb (GtkWidget *cancel_button, EogPostasaPlugin *plugin)
 {
+	/* Make sure we don't resume uploads */
+	plugin->priv->uploads_pending = FALSE;
+
 	return login_dialog_close (plugin);
 }
 
@@ -724,6 +727,9 @@ login_dialog_cancel_button_cb (GtkWidget *cancel_button, EogPostasaPlugin *plugi
 static gboolean
 login_dialog_delete_event_cb (GtkWidget *widget, GdkEvent *event, gpointer *_plugin)
 {
+	/* Make sure we don't resume uploads */
+	EOG_POSTASA_PLUGIN (_plugin)->priv->uploads_pending = FALSE;
+
 	return login_dialog_close (EOG_POSTASA_PLUGIN (_plugin));
 }
 



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