diff options
author | Corey Berla <corey@berla.me> | 2022-11-01 17:11:11 -0700 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2023-01-09 11:06:43 +0000 |
commit | 2282fa5a57b082abcd38312a3e3085f18362b6f3 (patch) | |
tree | bafad73bf8a1b8be4fb487fdee867ea879179589 /src/nautilus-window.c | |
parent | 8f727d6428b33d969f4f8c050001665f2b965e2b (diff) | |
download | nautilus-2282fa5a57b082abcd38312a3e3085f18362b6f3.tar.gz |
window: Make new tabs use location from menu tab or current tab
New tabs are always taking the location of the current tab even
if the new tab was generated from a non-current tab using the
tab bar context menu.
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r-- | src/nautilus-window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c index c6ab1a731..cdc187dc9 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -733,10 +733,12 @@ void nautilus_window_new_tab (NautilusWindow *window) { NautilusWindowSlot *current_slot; + AdwTabPage *page; GFile *location; g_autofree gchar *uri = NULL; - current_slot = nautilus_window_get_active_slot (window); + page = get_current_page (window); + current_slot = NAUTILUS_WINDOW_SLOT (adw_tab_page_get_child (page)); location = nautilus_window_slot_get_location (current_slot); if (location != NULL) |