diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2013-05-17 17:26:47 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-05-30 14:34:19 +0200 |
commit | 15ac497dc61f82a7dc480a427cda51ccadf71686 (patch) | |
tree | da743372f3e9e54ee5546926779e671afd2568d5 /sendto | |
parent | d7228b9fab6398339bdb1f356e99d8a5bfedbe40 (diff) | |
download | gnome-bluetooth-15ac497dc61f82a7dc480a427cda51ccadf71686.tar.gz |
sendto: fix 'Retry' button
We were trying to create a session unconditionally but that
fails if we already have one.
https://bugzilla.gnome.org/show_bug.cgi?id=685717
Diffstat (limited to 'sendto')
-rw-r--r-- | sendto/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sendto/main.c b/sendto/main.c index bd846999..bed38b37 100644 --- a/sendto/main.c +++ b/sendto/main.c @@ -349,7 +349,13 @@ static void response_callback(GtkWidget *dialog, _("Connecting...")); gtk_label_set_text (GTK_LABEL (label_status), ""); gtk_widget_hide (image_status); - send_files (); + + /* If we have a session, we don't need to create another one. */ + if (session) + send_next_file (); + else + send_files (); + return; } |