[gnome-bluetooth] sendto: fix 'Retry' button



commit 15ac497dc61f82a7dc480a427cda51ccadf71686
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Fri May 17 17:26:47 2013 +0200

    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

 sendto/main.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/sendto/main.c b/sendto/main.c
index bd84699..bed38b3 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;
        }
 


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