mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 09:34:53 +02:00
Removing a DeletablePage needs to destroy the page view ViewManager.
This commit is contained in:
@@ -142,3 +142,13 @@ GenericPageItem::setSortValue( int value )
|
||||
{
|
||||
m_sortValue = value;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
GenericPageItem::removeFromList()
|
||||
{
|
||||
SourceTreeItem::removeFromList();
|
||||
|
||||
if ( type() == SourcesModel::DeletablePage )
|
||||
ViewManager::instance()->destroyPage( m_get() );
|
||||
}
|
||||
|
@@ -45,6 +45,9 @@ public:
|
||||
void setText( const QString& text );
|
||||
void setSortValue( int value );
|
||||
|
||||
public slots:
|
||||
void removeFromList();
|
||||
|
||||
signals:
|
||||
void activated();
|
||||
|
||||
|
Reference in New Issue
Block a user