Commit 9041d817 authored by Scott Wheeler's avatar Scott Wheeler

*) It's preferable to do completion when the artist column is selected. ;-)

*) Also clear the completion list in the case that we're editing one of the
   columns that doesn't have completions available.

svn path=/trunk/kdemultimedia/juk/; revision=250412
parent 436f31be
......@@ -1283,13 +1283,14 @@ void Playlist::slotRenameTag()
switch(m_currentColumn - columnOffset())
{
case PlaylistItem::TrackColumn:
case PlaylistItem::ArtistColumn:
edit->completionObject()->setItems(list->uniqueSet(CollectionList::Artists));
break;
case PlaylistItem::AlbumColumn:
edit->completionObject()->setItems(list->uniqueSet(CollectionList::Albums));
break;
case PlaylistItem::GenreColumn:
{
QStringList genreStrings;
GenreList genres = GenreListList::ID3v1List();
for(GenreList::Iterator it = genres.begin(); it != genres.end(); ++it)
......@@ -1297,6 +1298,10 @@ void Playlist::slotRenameTag()
edit->completionObject()->setItems(genreStrings);
break;
}
default:
edit->completionObject()->clear();
break;
}
m_editText = currentItem()->text(m_currentColumn);
......
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