author | harlekin <harlekin> | 2002-09-10 19:36:55 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-10 19:36:55 (UTC) |
commit | 320ef8d638f37698f08c3127287c4c8afd6e0f58 (patch) (unidiff) | |
tree | 3abc1e7ba79cefab4deb97eab8dc933d8007903c /noncore | |
parent | b32eceaca5f1dbbfd7cd0709a34ce6f97929e28f (diff) | |
download | opie-320ef8d638f37698f08c3127287c4c8afd6e0f58.zip opie-320ef8d638f37698f08c3127287c4c8afd6e0f58.tar.gz opie-320ef8d638f37698f08c3127287c4c8afd6e0f58.tar.bz2 |
adapted to new fileselector, does not run like this on retail rom anymore. but still, it the fileselector stuff in that place needed at all?
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 10 |
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 | |||
@@ -327,13 +327,13 @@ const DocLnk *PlayListWidget::current() { // this is fugly | |||
327 | // qDebug("playlist"); | 327 | // qDebug("playlist"); |
328 | if ( mediaPlayerState->playlist() ) { | 328 | if ( mediaPlayerState->playlist() ) { |
329 | return d->selectedFiles->current(); | 329 | return d->selectedFiles->current(); |
330 | } else if ( d->setDocumentUsed && d->current ) { | 330 | } else if ( d->setDocumentUsed && d->current ) { |
331 | return d->current; | 331 | return d->current; |
332 | } else { | 332 | } else { |
333 | return d->files->selected(); | 333 | return &(d->files->selectedDocument()); |
334 | } | 334 | } |
335 | } | 335 | } |
336 | break; | 336 | break; |
337 | }; | 337 | }; |
338 | return 0; | 338 | return 0; |
339 | } | 339 | } |
@@ -645,14 +645,14 @@ void PlayListWidget::btnPlay(bool b) { | |||
645 | 645 | ||
646 | void PlayListWidget::deletePlaylist() { | 646 | void PlayListWidget::deletePlaylist() { |
647 | switch( QMessageBox::information( this, (tr("Remove Playlist?")), | 647 | switch( QMessageBox::information( this, (tr("Remove Playlist?")), |
648 | (tr("You really want to delete\nthis playlist?")), | 648 | (tr("You really want to delete\nthis playlist?")), |
649 | (tr("Yes")), (tr("No")), 0 )){ | 649 | (tr("Yes")), (tr("No")), 0 )){ |
650 | case 0: // Yes clicked, | 650 | case 0: // Yes clicked, |
651 | QFile().remove(playLists->selected()->file()); | 651 | QFile().remove(playLists->selectedDocument().file()); |
652 | QFile().remove(playLists->selected()->linkFile()); | 652 | QFile().remove(playLists->selectedDocument().linkFile()); |
653 | playLists->reread(); | 653 | playLists->reread(); |
654 | break; | 654 | break; |
655 | case 1: // Cancel | 655 | case 1: // Cancel |
656 | break; | 656 | break; |
657 | }; | 657 | }; |
658 | } | 658 | } |
@@ -1045,15 +1045,15 @@ void PlayListWidget::skinsMenuActivated( int item ) { | |||
1045 | int PlayListWidget::whichList() { | 1045 | int PlayListWidget::whichList() { |
1046 | return tabWidget->currentPageIndex(); | 1046 | return tabWidget->currentPageIndex(); |
1047 | } | 1047 | } |
1048 | 1048 | ||
1049 | QString PlayListWidget::currentFileListPathName() { | 1049 | QString PlayListWidget::currentFileListPathName() { |
1050 | switch (whichList()) { | 1050 | switch (whichList()) { |
1051 | case 1: | 1051 | case 1: |
1052 | return audioView->currentItem()->text(3); | 1052 | return audioView->currentItem()->text(3); |
1053 | break; | 1053 | break; |
1054 | case 2: | 1054 | case 2: |
1055 | return videoView->currentItem()->text(3); | 1055 | return videoView->currentItem()->text(3); |
1056 | break; | 1056 | break; |
1057 | }; | 1057 | }; |
1058 | return ""; | 1058 | return ""; |
1059 | } | 1059 | } |