Also change the view mode, when the view properties settings file is not writeable.
Review Request #111120 - Created June 19, 2013 and submitted
The problem is, that the new view mode will be saved to the view properties file on view mode change. After saving the new view mode, Dolphin re-reads the view properties file to get the new view mode from this file to apply it to the view. Change View Mode => Save View Mode to the file => Read View Mode from the file => Apply it to the View When the view properties file is not writeable, the view mode can not be changed with the current implementation. This patch fixes this problem, because the view mode can always be changed, also if the properties file is not writable. (Dolphin tries to save the View Mode on view mode change) Change View Mode => Apply it to the View + Save View Mode to the file if possible
Works for me.
Thanks Emmanuel for looking into this issue! The class ViewProperties does have support for storing the view properties in the user's home directory if the .directory file is not writeable. And this works fine for me if I remove the write permissions from any .directory file. Could you please describe how you managed to reproduce the "cannot change view mode" bug? It seems that the lack of write permissions is not sufficient (or maybe, the code that detects if we have write permissions is broken?). Thanks.