application: don't redirect windows on computer:// when unmounting

It's confusing now that we don't have a desktop. Redirect to the user
home instead.

This also has the side effect of fixing
https://bugzilla.gnome.org/show_bug.cgi?id=615963
This commit is contained in:
Cosimo Cecchi 2011-04-03 20:53:40 -04:00
parent b37f08ef61
commit 367572b907

View file

@ -830,7 +830,7 @@ mount_removed_callback (GVolumeMonitor *monitor,
slot != force_no_close_slot) {
nautilus_window_pane_slot_close (slot->pane, slot);
} else {
computer = g_file_new_for_uri ("computer:///");
computer = g_file_new_for_path (g_get_home_dir ());
nautilus_window_slot_go_to (slot, computer, FALSE);
g_object_unref(computer);
}