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
committerChandni Verma <chandniverma2112@gmail.com>2011-03-11 13:10:23 +0800
commit4b7d2787c3d4487647628109e14a6618e3db8da8 (patch)
tree71af717dea9addd4e08d124044736b7ff16d3dfd /libempathy-gtk/empathy-individual-dialogs.c
parent80d502ca384aaf07e2b572da7414d7ff36e91936 (diff)
downloadgsoc2013-empathy-4b7d2787c3d4487647628109e14a6618e3db8da8.tar
gsoc2013-empathy-4b7d2787c3d4487647628109e14a6618e3db8da8.tar.gz
gsoc2013-empathy-4b7d2787c3d4487647628109e14a6618e3db8da8.tar.bz2
gsoc2013-empathy-4b7d2787c3d4487647628109e14a6618e3db8da8.tar.lz
gsoc2013-empathy-4b7d2787c3d4487647628109e14a6618e3db8da8.tar.xz
gsoc2013-empathy-4b7d2787c3d4487647628109e14a6618e3db8da8.tar.zst
gsoc2013-empathy-4b7d2787c3d4487647628109e14a6618e3db8da8.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 1d3fcb8e2..e141182ba 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;
}