summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 2b58402..20adf17 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -332,3 +332,3 @@ const DocLnk *PlayListWidget::current() { // this is fugly
} else {
- return d->files->selected();
+ return &(d->files->selectedDocument());
}
@@ -650,4 +650,4 @@ void PlayListWidget::deletePlaylist() {
case 0: // Yes clicked,
- QFile().remove(playLists->selected()->file());
- QFile().remove(playLists->selected()->linkFile());
+ QFile().remove(playLists->selectedDocument().file());
+ QFile().remove(playLists->selectedDocument().linkFile());
playLists->reread();
@@ -1050,6 +1050,6 @@ QString PlayListWidget::currentFileListPathName() {
switch (whichList()) {
- case 1:
+ case 1:
return audioView->currentItem()->text(3);
break;
- case 2:
+ case 2:
return videoView->currentItem()->text(3);