From 5f0200b15115f5ca736eb33df52fc823b44fb629 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 2 Jan 2012 14:14:14 +0100 Subject: [PATCH] * Fixed not being able to collapse History item in the sidebar. --- src/sourcetree/items/historyitem.cpp | 8 -------- src/sourcetree/items/historyitem.h | 6 ------ 2 files changed, 14 deletions(-) diff --git a/src/sourcetree/items/historyitem.cpp b/src/sourcetree/items/historyitem.cpp index 09aaa2b6a..5b6c73b98 100644 --- a/src/sourcetree/items/historyitem.cpp +++ b/src/sourcetree/items/historyitem.cpp @@ -33,7 +33,6 @@ using namespace Tomahawk; HistoryItem::HistoryItem( SourcesModel* model, SourceTreeItem* parent, const QString& text, int peerSortValue ) : GroupItem( model, parent, text, peerSortValue ) { - connect( this, SIGNAL( toggleExpandRequest( SourceTreeItem* ) ), model, SLOT( itemToggleExpandRequest( SourceTreeItem* ) ) ); connect( ViewManager::instance(), SIGNAL( tempPageActivated( Tomahawk::ViewPage* ) ), SLOT( tempPageActivated( Tomahawk::ViewPage* ) ) ); } @@ -43,13 +42,6 @@ HistoryItem::~HistoryItem() } -void -HistoryItem::activate() -{ - emit toggleExpandRequest( this ); -} - - void HistoryItem::tempPageActivated( Tomahawk::ViewPage* v ) { diff --git a/src/sourcetree/items/historyitem.h b/src/sourcetree/items/historyitem.h index 7406d4e84..f4c3699b5 100644 --- a/src/sourcetree/items/historyitem.h +++ b/src/sourcetree/items/historyitem.h @@ -38,12 +38,6 @@ public: HistoryItem( SourcesModel* model, SourceTreeItem* parent, const QString& text, int peerSortValue = 0 ); virtual ~HistoryItem(); -public slots: - virtual void activate(); - -signals: - void activated(); - private slots: void tempPageActivated( Tomahawk::ViewPage* ); void temporaryPageDestroyed();