]> git.0d.be Git - empathy.git/commitdiff
Emit the transfer_started signal as soon as we start an incoming transfer.
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>
Wed, 18 Feb 2009 10:49:02 +0000 (11:49 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 1 Jun 2009 15:46:06 +0000 (17:46 +0200)
libempathy/empathy-ft-handler.c

index 1e17cb00b61ae5ecaa397e47be0649687c546e5e..d1909c15ccba66d2394e1b21d5315569e218ec8b 100644 (file)
@@ -898,6 +898,11 @@ empathy_ft_handler_start_transfer (EmpathyFTHandler *handler,
     }
   else
     {
+      /* emit the start signal now, so that we can catch errors in the
+       * op callback.
+       */
+      g_signal_emit (handler, signals[TRANSFER_STARTED], 0, priv->tpfile);
+
       /* TODO: add support for resume. */
       empathy_tp_file_accept (priv->tpfile, 0, priv->gfile, priv->cancellable,
           ft_transfer_progress_callback, handler,