mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Activate edit on rename action from context menu
This commit is contained in:
@@ -103,6 +103,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() ) );
|
||||
}
|
||||
@@ -187,6 +188,11 @@ SourceTreeView::deletePlaylist()
|
||||
}
|
||||
}
|
||||
|
||||
void SourceTreeView::renamePlaylist()
|
||||
{
|
||||
edit( m_contextMenuIndex );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SourceTreeView::onCustomContextMenu( const QPoint& pos )
|
||||
|
@@ -27,7 +27,8 @@ private slots:
|
||||
|
||||
void loadPlaylist();
|
||||
void deletePlaylist();
|
||||
|
||||
void renamePlaylist();
|
||||
|
||||
void onCustomContextMenu( const QPoint& pos );
|
||||
void onSourceOffline( Tomahawk::source_ptr );
|
||||
|
||||
|
Reference in New Issue
Block a user