[nautilus/autorun-cleanup: 9/12] Prevent showing asserts when GFile is no longer valid after unmount
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/autorun-cleanup: 9/12] Prevent showing asserts when GFile is no longer valid after unmount
- Date: Thu, 25 Nov 2010 11:48:10 +0000 (UTC)
commit 7c71b7f383ece8ad9be39fcb28b9377364a35cb3
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]