Review Request 113057: I am trying to kill Bug 322016 - Apply button is always enabled in Playlist Layout Editor dialog

Matěj Laitl matej at laitl.cz
Tue Oct 22 08:56:49 UTC 2013



> On Oct. 2, 2013, 7:34 p.m., Matěj Laitl wrote:
> > Hi, thanks for your patch. Unfortunately, this is not the right approach. Instead of tracking user changes, the logic under apply button should be:
> > 1. watch every state change in the applicable controls and pressing of the apply button.
> > 2. when a change happens, compare the current visible configuration with the last saved one and call setEnabled( settingsDiffer ); where settingsDiffer is a bool with obvious meaning.
> 
> Ricardo Varas wrote:
>     Hello, thanks for your comment. And do you know how to obtain if the OK or Cancel button form the token has been clicked?

Not without studying the code, you must try yourself. :)


- Matěj


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/113057/#review41134
-----------------------------------------------------------


On Oct. 2, 2013, 7:27 p.m., Ricardo Varas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/113057/
> -----------------------------------------------------------
> 
> (Updated Oct. 2, 2013, 7:27 p.m.)
> 
> 
> Review request for Amarok.
> 
> 
> Bugs: 322016
>     https://bugs.kde.org/show_bug.cgi?id=322016
> 
> 
> Repository: amarok
> 
> 
> Description
> -------
> 
> I am trying to kill Bug 322016 - Apply button is always enabled in Playlist Layout Editor dialog.
> In multiple parts I call the enable property for the Apply button and enable/disable it according to specific actions. I tried to cover all possible actions from a user --of course it begins in the disabled status as requested and it's disabled after the user clicks it --.
> One thing I am not happy about is the fact that when the Token (the option with the tool icon) is used to configure the playlist items such as album, album artist, etc. then the Apply button is always enabled and I believe under that case it should only become enabled if the Configuration for... dialog's OK button is clicked, and remain disabled after the Cancel button is clicked or the dialog is closed. I think LayoutEditDialog.cpp is called every time the token is chosen but right not I am unable to understand how they are connected LayoutEditDialog.cpp and PlaylistLayoutEditDialog.cpp.
> I'd appreciate if someone can help me understand this one and put together a good patch for this bug.
> Thanks.
> 
> 
> Diffs
> -----
> 
>   PlaylistLayoutEditDialog1.cpp 99aee2a 
> 
> Diff: http://git.reviewboard.kde.org/r/113057/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Ricardo Varas
> 
>

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


More information about the Amarok-devel mailing list