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


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.

- Matěj Laitl


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
> 
>

_______________________________________________
Amarok-devel mailing list
Amarok-devel@kde.org
https://mail.kde.org/mailman/listinfo/amarok-devel

Reply via email to