[empathy] individual-view: call empathy_individual_manager_remove() also when the response is GTK_RESPONSE_YES



commit 18905073c9948920f1804540b332fb0758e2e5a3
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Mar 14 15:24:43 2011 +0100

    individual-view: call empathy_individual_manager_remove() also when the response is GTK_RESPONSE_YES
    
    Also, don't remove the contact if the operation has been cancelled in
    empathy_block_individual_dialog_show().

 libempathy-gtk/empathy-individual-view.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index 89f39f1..f72f6e6 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -2474,17 +2474,15 @@ individual_view_remove_activate_cb (GtkMenuItem *menuitem,
         {
           gboolean abusive;
 
-          if (res == REMOVE_DIALOG_RESPONSE_DELETE_AND_BLOCK &&
-              empathy_block_individual_dialog_show (parent, individual,
-                &abusive))
+          if (res == REMOVE_DIALOG_RESPONSE_DELETE_AND_BLOCK)
             {
+              if (!empathy_block_individual_dialog_show (parent, individual,
+                    &abusive))
+                goto finally;
+
               empathy_individual_manager_set_blocked (manager, individual,
                   TRUE, abusive);
             }
-          else
-            {
-              goto finally;
-            }
 
           empathy_individual_manager_remove (manager, individual, "");
         }



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