summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/playlistselection.cpp
Unidiff
Diffstat (limited to 'core/multimedia/opieplayer/playlistselection.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistselection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/playlistselection.cpp b/core/multimedia/opieplayer/playlistselection.cpp
index 67187f8..94567f2 100644
--- a/core/multimedia/opieplayer/playlistselection.cpp
+++ b/core/multimedia/opieplayer/playlistselection.cpp
@@ -185,25 +185,25 @@ bool PlayListSelection::last() {
185 185
186void PlayListSelection::unSelect() 186void PlayListSelection::unSelect()
187{ 187{
188 QListViewItem *item = selectedItem(); 188 QListViewItem *item = selectedItem();
189 setSelected( currentItem(), FALSE); 189 setSelected( currentItem(), FALSE);
190} 190}
191 191
192void PlayListSelection::writeCurrent( Config& cfg ) { 192void PlayListSelection::writeCurrent( Config& cfg ) {
193 cfg.setGroup("PlayList"); 193 cfg.setGroup("PlayList");
194 QListViewItem *item = selectedItem(); 194 QListViewItem *item = selectedItem();
195 if ( item ) 195 if ( item )
196 cfg.writeEntry("current", item->text(0) ); 196 cfg.writeEntry("current", item->text(0) );
197 qDebug(item->text(0)); 197 // qDebug(item->text(0));
198 198
199} 199}
200 200
201void PlayListSelection::setSelectedItem(const QString &strk ) { 201void PlayListSelection::setSelectedItem(const QString &strk ) {
202 202
203 unSelect(); 203 unSelect();
204 QListViewItemIterator it( this ); 204 QListViewItemIterator it( this );
205 for ( ; it.current(); ++it ) { 205 for ( ; it.current(); ++it ) {
206// qDebug( it.current()->text(0)); 206// qDebug( it.current()->text(0));
207 if( strk == it.current()->text(0)) { 207 if( strk == it.current()->text(0)) {
208// qDebug( "We have a match "+strk); 208// qDebug( "We have a match "+strk);
209 setSelected( it.current(), TRUE); 209 setSelected( it.current(), TRUE);