[dolphin] [Bug 495878] Customizing the default view settings doesn't work anymore

Méven bugzilla_noreply at kde.org
Mon Dec 16 19:00:07 GMT 2024


https://bugs.kde.org/show_bug.cgi?id=495878

Méven <meven at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/8d15555
                   |                            |8e980197b4dc2180660ea9bc61a
                   |                            |23f3d3

--- Comment #8 from Méven <meven at kde.org> ---
Git commit 8d155558e980197b4dc2180660ea9bc61a23f3d3 by Méven Car, on behalf of
Akseli Lahtinen.
Committed on 16/12/2024 at 19:00.
Pushed by meven into branch 'master'.

ViewProperties: Return nullptr if viewPropertiesString is empty

If viewPropertiesString is empty, return a nullptr.
This will later used in the stack by the defaultProperties call.

In defaultProperties, if we can't find the global directory,
create new one with a tempfile. If tempfiles can't be created,
use default instead.

This will ensure that view settings are saved and loaded correctly
if user has separate view properties per folder.

This will also add an unit test, where we create a global directory,
modify it and make sure the changes are reflected in the unmodified
folder.

M  +69   -6    src/tests/viewpropertiestest.cpp
M  +39   -20   src/views/viewproperties.cpp

https://invent.kde.org/system/dolphin/-/commit/8d155558e980197b4dc2180660ea9bc61a23f3d3

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list