Commit 83fc299b authored by Scott Wheeler's avatar Scott Wheeler

Make it possible to rescan the collection by clicking on reload in the RMB

or file menu.

CCMAIL:65805-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=303503
parent eae70bae
......@@ -551,7 +551,7 @@ void JuK::slotPlaylistChanged()
action("file_save")->setEnabled(false);
action("file_save_as")->setEnabled(false);
action("renamePlaylist")->setEnabled(false);
action("reloadPlaylist")->setEnabled(false);
action("reloadPlaylist")->setEnabled(m_splitter->collectionListSelected());
action("deleteItemPlaylist")->setEnabled(false);
}
else {
......
......@@ -396,6 +396,14 @@ void PlaylistSplitter::slotDeleteSelectedItems()
p->slotRemoveSelectedItems();
}
void PlaylistSplitter::slotReloadPlaylist()
{
if(collectionListSelected())
slotScanDirectories();
else
visiblePlaylist()->slotReload();
}
void PlaylistSplitter::slotAddToPlaylist(const QString &file, Playlist *list, PlaylistItem *after)
{
if(!after)
......
......@@ -191,7 +191,7 @@ public slots:
*
* \see slotRefresh()
*/
void slotReloadPlaylist() { visiblePlaylist()->slotReload(); }
void slotReloadPlaylist();
/**
* Show or hide the editor.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment