summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorE.S. Quinn <[email protected]>2013-04-15 17:19:06 -0700
committerE.S. Quinn <[email protected]>2013-04-15 17:19:06 -0700
commit6daeceae71a22d14893404a2e95bc89112674c69 (patch)
tree3b2f24c47343190849fe4da6994181d8a9090a6a
parentfb44f5ae12331d8ebfd0d6af6c091bced2fa3464 (diff)
downloadcaja-6daeceae71a22d14893404a2e95bc89112674c69.tar.bz2
caja-6daeceae71a22d14893404a2e95bc89112674c69.tar.xz
Made File Browser windows always open folders in the same window,
even when spatial mode is enabled.
-rw-r--r--src/caja-window-manage-views.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/caja-window-manage-views.c b/src/caja-window-manage-views.c
index c2c5b5ff..c7918e6c 100644
--- a/src/caja-window-manage-views.c
+++ b/src/caja-window-manage-views.c
@@ -528,7 +528,7 @@ caja_window_slot_open_location_full (CajaWindowSlot *slot,
int new_slot_position;
GList *l;
gboolean target_navigation = FALSE, target_same = FALSE;
- gboolean is_desktop;
+ gboolean is_desktop, is_navigation;
window = slot->pane->window;
@@ -553,6 +553,7 @@ caja_window_slot_open_location_full (CajaWindowSlot *slot,
(flags & CAJA_WINDOW_OPEN_FLAG_NEW_TAB) != 0));
is_desktop = CAJA_IS_DESKTOP_WINDOW (window);
+ is_navigation = CAJA_IS_NAVIGATION_WINDOW (window);
target_same = is_desktop &&
!caja_desktop_window_loaded (CAJA_DESKTOP_WINDOW (window));
@@ -575,6 +576,8 @@ caja_window_slot_open_location_full (CajaWindowSlot *slot,
* the target is a navigation.
*/
target_navigation = TRUE;
+ } else if (is_navigation) {
+ target_same = TRUE;
}
break;
case CAJA_WINDOW_OPEN_IN_NAVIGATION :