]> git.0d.be Git - empathy.git/commitdiff
Set the right initial value in the UI
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>
Thu, 14 May 2009 17:57:25 +0000 (19:57 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 1 Jun 2009 15:49:57 +0000 (17:49 +0200)
Set an initial value for the UI string in case we're not using hash.

src/empathy-ft-manager.c

index a49daabd34c8f1576c98cfc79ab147413c8bb6e1..7c1071760418385e9ee9168b63d600190b679bab 100644 (file)
@@ -747,8 +747,13 @@ ft_manager_add_handler_to_list (EmpathyFTManager *manager,
       return;
     }
 
-  /* update the row with the initial values */
-  if (empathy_ft_handler_is_incoming (handler)) {
+  /* update the row with the initial values.
+   * the only case where we postpone this is in case we're managing
+   * an outgoing+hashing transfer, as the hashing started signal will
+   * take care of updating the information.
+   */
+  if (empathy_ft_handler_is_incoming (handler) ||
+      !empathy_ft_handler_get_use_hash (handler)) {
     first_line = ft_manager_format_contact_info (handler);
     second_line = _("Waiting for the other participant's response");
     message = g_strdup_printf ("%s\n%s", first_line, second_line);
@@ -759,7 +764,6 @@ ft_manager_add_handler_to_list (EmpathyFTManager *manager,
     g_free (message);
   }
 
-
   /* hook up the signals and start the transfer */
   ft_manager_start_transfer (manager, handler);
 }