diff --git a/src/sourcetree/sourcedelegate.cpp b/src/sourcetree/sourcedelegate.cpp index a203e30db..86a874d09 100644 --- a/src/sourcetree/sourcedelegate.cpp +++ b/src/sourcetree/sourcedelegate.cpp @@ -68,9 +68,6 @@ SourceDelegate::SourceDelegate( QAbstractItemView* parent ) m_headphonesOn.load( RESPATH "images/headphones-sidebar.png" ); m_nowPlayingSpeaker.load( RESPATH "images/now-playing-speaker.png" ); m_nowPlayingSpeakerDark.load( RESPATH "images/now-playing-speaker-dark.png" ); - - QAction *privacyToggle = ActionCollection::instance()->getAction( "togglePrivacy" ); - connect( privacyToggle, SIGNAL( triggered( bool ) ), qobject_cast< QWidget* >( this ), SLOT( repaint() ) ); } diff --git a/src/sourcetree/sourcetreeview.cpp b/src/sourcetree/sourcetreeview.cpp index 653cd56d7..4d22677fc 100644 --- a/src/sourcetree/sourcetreeview.cpp +++ b/src/sourcetree/sourcetreeview.cpp @@ -114,6 +114,9 @@ SourceTreeView::SourceTreeView( QWidget* parent ) connect( this, SIGNAL( latchRequest( Tomahawk::source_ptr ) ), m_latchManager, SLOT( latchRequest( Tomahawk::source_ptr ) ) ); connect( this, SIGNAL( unlatchRequest( Tomahawk::source_ptr ) ), m_latchManager, SLOT( unlatchRequest( Tomahawk::source_ptr ) ) ); connect( this, SIGNAL( catchUpRequest() ), m_latchManager, SLOT( catchUpRequest() ) ); + + QAction *privacyToggle = ActionCollection::instance()->getAction( "togglePrivacy" ); + connect( privacyToggle, SIGNAL( triggered( bool ) ), SLOT( repaint() ) ); }