Review Request 128565: Presets persisted properly for "Organize tracks" and "Guess tags" dialogs

Stefano Pettini stefano.pettini at gmail.com
Tue Aug 16 14:31:55 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128565/
-----------------------------------------------------------

(Updated Aug. 16, 2016, 4:31 p.m.)


Review request for Amarok.


Changes
-------

Improved description of the patch and tests, ready to be shipped.


Summary (updated)
-----------------

Presets persisted properly for "Organize tracks" and "Guess tags" dialogs


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


Repository: amarok


Description (updated)
-------

FilenameLayoutWidget is reworked to fix an old bug regarding the presets
not being saved properly, that I was also able to reproduce.

Logic is not a bit more "linear". Presets are shared between "Organize tracks"
and "Guess tags" dialog. If this is not what is wanted, it can be easily changed,
just let me know. Presets are saved as soon as they are added, updated or deleted.
It is not anymore necessary to accept the dialog to save eventual changes.

The preset used is not saved with the marker "#DELIM#selected" anymore.
Presets are just presets. The one used is matched on the fly using the custom
preset field. If a preset matches the custom preset field, it's considered
selected. Users can of course create custom presets as before.
While presets are shared between the two dialogs, custom presets are not.

Add/Update/Remove work properly. Clicking on a preset name in the combobox
resets the custom pattern to the preset value, this is a new feature,
before it was not possible.

It's a bit difficult to explain, but UX is more natural, just give it a try.


Diffs
-----

  ChangeLog 5d8ca4a 
  src/amarokconfig.kcfg c35140c 
  src/dialogs/OrganizeCollectionDialog.h 88fa08d 
  src/dialogs/OrganizeCollectionDialog.cpp 973e9cb 
  src/widgets/FilenameLayoutWidget.h 9fb2678 
  src/widgets/FilenameLayoutWidget.cpp 8d189cf 

Diff: https://git.reviewboard.kde.org/r/128565/diff/


Testing (updated)
-------

A lot of testing was done, like:
- adding/updating/removing presets.
- if settings are persisted and shared when dialogs are cancelled or accepted.
- if custom patterns are persisted and not shared.
- resetting a modified pattern to its defualt.
- cancelling dialogs, modified presets are kept but custom patterns are not.


Thanks,

Stefano Pettini

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20160816/b62bf57b/attachment.html>


More information about the Amarok-devel mailing list