summaryrefslogtreecommitdiff
path: root/src/nautilus-application.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2004-10-26 13:28:05 +0000
committerAlexander Larsson <alexl@src.gnome.org>2004-10-26 13:28:05 +0000
commit4debd0a59ea148c1a2bc2a6782fa739bd970612d (patch)
treebfa5d91291b4ca9fa660339add9c43af26211c02 /src/nautilus-application.c
parentb690667cd07d76f5375e96dcd2b71c46c6c341b9 (diff)
downloadnautilus-4debd0a59ea148c1a2bc2a6782fa739bd970612d.tar.gz
Handle volumes for root nodes
2004-10-26 Alexander Larsson <alexl@redhat.com> * src/file-manager/fm-tree-model.[ch]: Handle volumes for root nodes * src/file-manager/fm-tree-view.c: Add eject on volume toplevel roots. * src/nautilus-application.c: Don't close nav windows when unmounting, just go to home. Patch from Colin Leroy <colin@colino.net>
Diffstat (limited to 'src/nautilus-application.c')
-rw-r--r--src/nautilus-application.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 89a04b9c9..af4ad6d88 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1160,7 +1160,11 @@ volume_unmounted_callback (GnomeVFSVolumeMonitor *monitor,
/* Handle the windows in the close list. */
for (node = close_list; node != NULL; node = node->next) {
window = NAUTILUS_WINDOW (node->data);
- nautilus_window_close (window);
+ if (NAUTILUS_IS_SPATIAL_WINDOW (window)) {
+ nautilus_window_close (window);
+ } else {
+ nautilus_window_go_home (window);
+ }
}
g_list_free (close_list);