Skip to content

Fix incorrect view when opening Other Locations in new tab / window

When navigating to Other Locations with "Open in New Tab" or "Open in New Window", you are always presented with the icon view because view_mode_before_places was never initialized. An uninitialized gint == 0 (and NAUTILUS_VIEW_GRID_ID == 0).

In a new tab / window, we don't know what the view was before navigating to Other Locations, so simply set view_mode_before_places = NAUTILUS_VIEW_INVALID_ID in order to follow the correct default behavior.

Fixes: #2281 (closed)

Merge request reports