summaryrefslogtreecommitdiff
path: root/src/nautilus-window-slot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-window-slot.c')
-rw-r--r--src/nautilus-window-slot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 5854f8650..f8f6c663e 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -479,11 +479,13 @@ nautilus_window_slot_update_query_editor (NautilusWindowSlot *slot)
{
if (slot->query_editor != NULL) {
gtk_widget_destroy (GTK_WIDGET (slot->query_editor));
- slot->query_editor = NULL;
+ g_assert (slot->query_editor == NULL);
}
EEL_CALL_METHOD (NAUTILUS_WINDOW_SLOT_CLASS, slot,
update_query_editor, (slot));
+
+ eel_add_weak_pointer (&slot->query_editor);
}
static void