1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-08 07:07:05 +02:00

Fixed dupe signal connection in TemporaryPageItem.

This commit is contained in:
Christian Muehlhaeuser
2014-10-14 06:58:31 +02:00
parent a9419d0440
commit 3a82481e6b
2 changed files with 0 additions and 7 deletions

View File

@@ -274,7 +274,6 @@ SourceTreeItem::removeFromList()
void
SourceTreeItem::pageDestroyed()
{
//FIXME: this seems to be triggered twice for temporary pages
model()->removeSourceItemLink( this );
int idx = parent()->children().indexOf( this );

View File

@@ -81,12 +81,6 @@ TemporaryPageItem::TemporaryPageItem( SourcesModel* mdl, SourceTreeItem* parent,
NewClosure( action, SIGNAL( triggered() ), this, SLOT( linkActionTriggered( QAction* ) ), action );
}
if ( QObject* obj = dynamic_cast< QObject* >( page ) )
{
if ( obj->metaObject()->indexOfSignal( "destroyed(QObject*)" ) > -1 )
connect( obj, SIGNAL( destroyed( QObject* ) ), SLOT( pageDestroyed() ) );
}
model()->linkSourceItemToPage( this, page );
}