[nautilus/gnome-3-20] window-slot: avoid random switching of the view
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-20] window-slot: avoid random switching of the view
- Date: Wed, 24 Feb 2016 10:38:05 +0000 (UTC)
commit 36561a205db37d6df42e02f5dad76277988cb9de
Author: Carlos Soriano <csoriano gnome org>
Date: Tue Feb 23 16:38:50 2016 +0100
window-slot: avoid random switching of the view
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.
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 92a88a2..8b948ed 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]