Review Request: Prevent last.fm credential popup on Amarok start if none are set

Bart Cerneels bart.cerneels at kde.org
Mon Jul 25 07:12:30 CEST 2011


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



src/services/lastfm/LastFmService.cpp
<http://git.reviewboard.kde.org/r/102079/#comment4536>

    This should never have been here in the first place. If the service is enabled but unconfigured at most a inline error message should be shown. Popup dialogs are annoying.


- Bart


On July 24, 2011, 9:36 p.m., Sam Lade wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102079/
> -----------------------------------------------------------
> 
> (Updated July 24, 2011, 9:36 p.m.)
> 
> 
> Review request for Amarok.
> 
> 
> Summary
> -------
> 
> As of commit 202c49ebf8b5521b0394b4b7c5e816bf4057c8de, if the Last.FM plugin is enabled, but no username and password are set, a request for the username and password is popped up on Amarok start.
> This is because this commit calls polish() on each service as it is created. If the service hasn't set m_inited = true when this happens (which is the case when no last.fm username and password are set), a dialogue pops up asking for them.
> 
> This simply removes that call. It was never run in older versions of Amarok, since apparently polish() was never called.
> 
> There may be better ways of doing it, but if so I can't work them out. Everything seems to work properly this way.
> 
> 
> Diffs
> -----
> 
>   src/services/lastfm/LastFmService.cpp ce0b6ec09f3403c44cb26eece994637d2db5db15 
> 
> Diff: http://git.reviewboard.kde.org/r/102079/diff
> 
> 
> Testing
> -------
> 
> Amarok started with and without last.fm credentials set. Everything seems to behave as expected. No badgering popups are shown.
> 
> 
> Thanks,
> 
> Sam
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/amarok-devel/attachments/20110725/2feadc78/attachment.htm 


More information about the Amarok-devel mailing list