aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-dialogs.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-02-14 09:36:22 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-02-14 09:36:22 +0800
commita848bc5256e4c80371a11f5eae20679df11d0fc1 (patch)
tree794b4c280bf98c2d7ce77031048d9bc4897ae5fe /libempathy-gtk/empathy-individual-dialogs.c
parentd48aea8bdaed274dfec7a46e092550067d7bd2ac (diff)
downloadgsoc2013-empathy-a848bc5256e4c80371a11f5eae20679df11d0fc1.tar
gsoc2013-empathy-a848bc5256e4c80371a11f5eae20679df11d0fc1.tar.gz
gsoc2013-empathy-a848bc5256e4c80371a11f5eae20679df11d0fc1.tar.bz2
gsoc2013-empathy-a848bc5256e4c80371a11f5eae20679df11d0fc1.tar.lz
gsoc2013-empathy-a848bc5256e4c80371a11f5eae20679df11d0fc1.tar.xz
gsoc2013-empathy-a848bc5256e4c80371a11f5eae20679df11d0fc1.tar.zst
gsoc2013-empathy-a848bc5256e4c80371a11f5eae20679df11d0fc1.zip
Only destroy block confirmation dialogs after we've read out the abusive state
Diffstat (limited to 'libempathy-gtk/empathy-individual-dialogs.c')
-rw-r--r--libempathy-gtk/empathy-individual-dialogs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-individual-dialogs.c b/libempathy-gtk/empathy-individual-dialogs.c
index e32ff05b6..22af8d567 100644
--- a/libempathy-gtk/empathy-individual-dialogs.c
+++ b/libempathy-gtk/empathy-individual-dialogs.c
@@ -240,7 +240,6 @@ empathy_block_individual_dialog_show (GtkWindow *parent,
g_string_free (str, TRUE);
res = gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
if (abusive != NULL)
{
@@ -251,5 +250,7 @@ empathy_block_individual_dialog_show (GtkWindow *parent,
*abusive = FALSE;
}
+ gtk_widget_destroy (dialog);
+
return res == GTK_RESPONSE_REJECT;
}