1
From 67ba854074ac48ec142bdf3b9848cb8d94070f82 Mon Sep 17 00:00:00 2001
2
From: Michael Cronenworth <mike@cchtml.com>
3
Date: Thu, 23 Jan 2014 21:47:55 +0000
4
Subject: nautilus-window: Check for valid location entry widget
6
https://bugzilla.gnome.org/show_bug.cgi?id=722616
8
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
9
index b3c3386..67b5899 100644
10
--- a/src/nautilus-window.c
11
+++ b/src/nautilus-window.c
12
@@ -1032,7 +1032,9 @@ nautilus_window_sync_location_widgets (NautilusWindow *window)
15
location_entry = nautilus_toolbar_get_location_entry (NAUTILUS_TOOLBAR (window->details->toolbar));
16
- nautilus_location_entry_set_location (NAUTILUS_LOCATION_ENTRY (location_entry), location);
17
+ if (location_entry != NULL && GTK_IS_WIDGET (location_entry)) {
18
+ nautilus_location_entry_set_location (NAUTILUS_LOCATION_ENTRY (location_entry), location);
21
path_bar = nautilus_toolbar_get_path_bar (NAUTILUS_TOOLBAR (window->details->toolbar));
22
nautilus_path_bar_set_path (NAUTILUS_PATH_BAR (path_bar), location);