diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-02-23 16:38:50 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-02-23 16:46:18 +0100 |
commit | 0ec598ff2d9795a9ab68165ae3a1c057a7eacb9d (patch) | |
tree | 2299ebf297d1c582059b717dc0bc18b76ae05c95 | |
parent | 3581f3757cc419e0c3fb6820fc0f8effe3f42b2a (diff) | |
download | nautilus-wip/csoriano/zoomsv3.tar.gz |
window-slot: avoid random switching of the viewwip/csoriano/zoomsv3
We were not initializing the view mode before search to the invalid
id, which then was initialized as 0 that it's actually a view id.
This was confusing the checks and making random changes of the view
on the first time the location was changed.
This was introduced as a regression when we introduced the separated
search view mode, which also reworked all of the view id handling.
-rw-r--r-- | src/nautilus-window-slot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index 92a88a23c..8b948edd7 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -703,6 +703,8 @@ nautilus_window_slot_init (NautilusWindowSlot *slot) nautilus_application_add_accelerator (app, "slot.files-view-mode(1)", "<control>1"); nautilus_application_add_accelerator (app, "slot.files-view-mode(0)", "<control>2"); nautilus_application_add_accelerator (app, "slot.search-visible", "<control>f"); + + slot->details->view_mode_before_search = NAUTILUS_VIEW_INVALID_ID; } #define DEBUG_FLAG NAUTILUS_DEBUG_WINDOW |