1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-29 20:49:52 +01:00

Merge branch 'master' into dynamic

This commit is contained in:
Leo Franchi 2011-01-20 17:27:49 -05:00
commit 3d677183f1
2 changed files with 8 additions and 1 deletions

View File

@ -107,6 +107,7 @@ SourceTreeView::setupMenus()
m_deletePlaylistAction->setEnabled( !readonly );
}
connect( m_renamePlaylistAction, SIGNAL( triggered() ), SLOT( renamePlaylist() ) );
connect( m_loadPlaylistAction, SIGNAL( triggered() ), SLOT( loadPlaylist() ) );
connect( m_deletePlaylistAction, SIGNAL( triggered() ), SLOT( deletePlaylist() ) );
}
@ -205,6 +206,11 @@ SourceTreeView::deletePlaylist()
}
}
void SourceTreeView::renamePlaylist()
{
edit( m_contextMenuIndex );
}
void
SourceTreeView::onCustomContextMenu( const QPoint& pos )

View File

@ -27,7 +27,8 @@ private slots:
void loadPlaylist();
void deletePlaylist();
void renamePlaylist();
void onCustomContextMenu( const QPoint& pos );
void onSourceOffline( Tomahawk::source_ptr );