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

Sam Lade sam at sentynel.com
Sun Jul 24 23:36:09 CEST 2011


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

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/20110724/247e76f7/attachment.htm 


More information about the Amarok-devel mailing list