[nautilus] window-slot: protect against no new view
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] window-slot: protect against no new view
- Date: Wed, 13 Jan 2016 10:02:44 +0000 (UTC)
commit 17e89f605c708e9d341308694eb770beb66dfbb7
Author: Carlos Soriano <csoriano gnome org>
Date: Tue Jan 12 11:55:18 2016 +0100
window-slot: protect against no new view
If not a critical is raised.
src/nautilus-window-slot.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index f775a14..762e746 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -2222,7 +2222,8 @@ nautilus_window_slot_switch_new_content_view (NautilusWindowSlot *slot)
GtkWidget *widget;
gboolean reusing_view;
- reusing_view = gtk_widget_get_parent (GTK_WIDGET (slot->details->new_content_view)) != NULL;
+ reusing_view = slot->details->new_content_view &&
+ gtk_widget_get_parent (GTK_WIDGET (slot->details->new_content_view)) != NULL;
/* We are either reusing the view, so new_content_view and content_view
* are the same, or the new_content_view is invalid */
if (slot->details->new_content_view == NULL || reusing_view)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]