[nautilus/autorun-cleanup: 9/9] Prevent showing asserts when GFile is no longer valid after unmount



commit a98db7c348215fbda15ab15a321b11fff3873617
Author: Tomas Bzatek <tbzatek redhat com>
Date:   Tue Nov 23 16:28:25 2010 +0100

    Prevent showing asserts when GFile is no longer valid after unmount

 src/nautilus-application.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index f23e20d..f32ef09 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1175,7 +1175,8 @@ mount_removed_callback (GVolumeMonitor *monitor,
 				for (l = pane->slots; l != NULL; l = l->next) {
 					slot = l->data;
 					location = slot->location;
-					if (g_file_has_prefix (location, root) ||
+					if (location == NULL ||
+					    g_file_has_prefix (location, root) ||
 					    g_file_equal (location, root)) {
 						close_list = g_list_prepend (close_list, slot);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]