summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2012-06-24 13:18:49 +0200
committerportix <none@none>2012-06-24 13:18:49 +0200
commitd9e78be255c203ed463e70449b02910e8ff23159 (patch)
tree16be5b4ca9e63c17cbe1e1c4057bc83ea6df08c0 /src
parentdf7507ce8ac77fd95486fe8ff4f6604fdc2f977b (diff)
downloaddwb-d9e78be255c203ed463e70449b02910e8ff23159.zip
Close webinspector when corresponding tab is closed instead of sending delete-event, fixes possible segfault when main window is closed
Diffstat (limited to 'src')
-rw-r--r--src/view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view.c b/src/view.c
index 020b4ddd..01d9ac90 100644
--- a/src/view.c
+++ b/src/view.c
@@ -974,7 +974,8 @@ view_clean(GList *gl) {
View *v = VIEW(gl);
/* Inspector */
if (v->inspector_window != NULL) {
- g_signal_emit_by_name(v->inspector_window, "delete-event", NULL);
+ gtk_widget_destroy(v->inspector_window);
+ v->inspector_window = NULL;
}
/* Favicon */