[amarok] src/browsers: Fix Internet services (scripted and non-scripted) are empty

Lydia Pintscher lydia at kde.org
Mon Jul 11 06:49:29 CEST 2011


Ralf: Thanks for fixing!
Can we changeloggify this please?


Cheers
Lydia


On Mon, Jul 11, 2011 at 01:23, Ralf Engels <ralf.engels at nokia.com> wrote:
> Git commit 202c49ebf8b5521b0394b4b7c5e816bf4057c8de by Ralf Engels.
> Committed on 11/07/2011 at 01:22.
> Pushed by rengels into branch 'master'.
>
> Fix Internet services (scripted and non-scripted) are empty
>
> BUG:277351
>
> M  +2    -0    src/browsers/BrowserCategoryList.cpp
> M  +0    -4    src/browsers/servicebrowser/ServiceBrowser.cpp
>
> http://commits.kde.org/amarok/202c49ebf8b5521b0394b4b7c5e816bf4057c8de
>
> diff --git a/src/browsers/BrowserCategoryList.cpp b/src/browsers/BrowserCategoryList.cpp
> index 09ae8fe..9a74d40 100644
> --- a/src/browsers/BrowserCategoryList.cpp
> +++ b/src/browsers/BrowserCategoryList.cpp
> @@ -166,6 +166,8 @@ BrowserCategoryList::addCategory( BrowserCategory *category )
>     if ( childList )
>         connect( childList, SIGNAL( viewChanged() ), this, SLOT( childViewChanged() ) );
>
> +    category->polish(); // service categories do an additional construction in polish
> +
>     if( m_sorting )
>     {
>         m_proxyModel->sort( 0 );
> diff --git a/src/browsers/servicebrowser/ServiceBrowser.cpp b/src/browsers/servicebrowser/ServiceBrowser.cpp
> index 5552330..5655175 100644
> --- a/src/browsers/servicebrowser/ServiceBrowser.cpp
> +++ b/src/browsers/servicebrowser/ServiceBrowser.cpp
> @@ -17,10 +17,6 @@
>  #include "ServiceBrowser.h"
>
>  #include "core/support/Debug.h"
> -#include "context/ContextView.h"
> -#include "PaletteHandler.h"
> -#include "widgets/PrettyTreeView.h"
> -#include "browsers/InfoProxy.h"
>
>  #include <KStandardDirs>
>
>



-- 
Lydia Pintscher
KDE Community Working Group member
http://kde.org - http://about.me/lydia.pintscher


More information about the Amarok-devel mailing list