Commit 709565a8 authored by Felix Riemann's avatar Felix Riemann

postasa: Make sure cancelling the login dialog really cancels

Beforehand it would try to resume the file uploads resulting in
warnings on the console.
parent 9d46bbfd
......@@ -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));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment