Diffstat (limited to 'core/multimedia/opieplayer/playlistselection.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistselection.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/playlistselection.cpp b/core/multimedia/opieplayer/playlistselection.cpp index 8f3711a..3c47256 100644 --- a/core/multimedia/opieplayer/playlistselection.cpp +++ b/core/multimedia/opieplayer/playlistselection.cpp | |||
@@ -200,2 +200,14 @@ void PlayListSelection::writeCurrent( Config& cfg ) { | |||
200 | void PlayListSelection::setSelectedItem(const QString &strk ) { | 200 | void PlayListSelection::setSelectedItem(const QString &strk ) { |
201 | |||
202 | unSelect(); | ||
203 | QListViewItemIterator it( this ); | ||
204 | for ( ; it.current(); ++it ) { | ||
205 | // qDebug( it.current()->text(0)); | ||
206 | if( strk == it.current()->text(0)) { | ||
207 | // qDebug( "We have a match "+strk); | ||
208 | setSelected( it.current(), TRUE); | ||
209 | ensureItemVisible( it.current() ); | ||
210 | return; | ||
211 | } | ||
212 | } | ||
201 | // setSelected( item, TRUE ); | 213 | // setSelected( item, TRUE ); |