author | bipolar <bipolar> | 2002-03-03 17:24:21 (UTC) |
---|---|---|
committer | bipolar <bipolar> | 2002-03-03 17:24:21 (UTC) |
commit | 9dfc9322b87eda3264b3b53039170c199c327e88 (patch) (unidiff) | |
tree | cdfb0c21a4378d484c4fe5d5e59f2804443deb23 /core | |
parent | a99347380a9006ec81a9dba2340d6aaab690a86e (diff) | |
download | opie-9dfc9322b87eda3264b3b53039170c199c327e88.zip opie-9dfc9322b87eda3264b3b53039170c199c327e88.tar.gz opie-9dfc9322b87eda3264b3b53039170c199c327e88.tar.bz2 |
committed by ljp (llornkcor): opps, fixed loading playlists
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp index 7862d8d..ae03ec8 100644 --- a/core/multimedia/opieplayer/playlistwidget.cpp +++ b/core/multimedia/opieplayer/playlistwidget.cpp | |||
@@ -41,25 +41,24 @@ | |||
41 | #include <qtabwidget.h> | 41 | #include <qtabwidget.h> |
42 | #include <qlistview.h> | 42 | #include <qlistview.h> |
43 | #include <qpoint.h> | 43 | #include <qpoint.h> |
44 | #include <qlineedit.h> | 44 | #include <qlineedit.h> |
45 | #include <qpushbutton.h> | 45 | #include <qpushbutton.h> |
46 | 46 | ||
47 | //#include <qtimer.h> | 47 | //#include <qtimer.h> |
48 | 48 | ||
49 | #include "playlistselection.h" | 49 | #include "playlistselection.h" |
50 | #include "playlistwidget.h" | 50 | #include "playlistwidget.h" |
51 | #include "mediaplayerstate.h" | 51 | #include "mediaplayerstate.h" |
52 | 52 | ||
53 | #include "fileBrowser.h" | ||
54 | #include "inputDialog.h" | 53 | #include "inputDialog.h" |
55 | 54 | ||
56 | #include <stdlib.h> | 55 | #include <stdlib.h> |
57 | 56 | ||
58 | #define BUTTONS_ON_TOOLBAR | 57 | #define BUTTONS_ON_TOOLBAR |
59 | #define SIDE_BUTTONS | 58 | #define SIDE_BUTTONS |
60 | #define CAN_SAVE_LOAD_PLAYLISTS | 59 | #define CAN_SAVE_LOAD_PLAYLISTS |
61 | 60 | ||
62 | extern MediaPlayerState *mediaPlayerState; | 61 | extern MediaPlayerState *mediaPlayerState; |
63 | 62 | ||
64 | // class myFileSelector { | 63 | // class myFileSelector { |
65 | 64 | ||
@@ -552,27 +551,27 @@ void PlayListWidget::saveList() { | |||
552 | lnk.setFile(QPEApplication::qpeDir()+"Settings/"+filename+".playlist.conf"); //sets File property | 551 | lnk.setFile(QPEApplication::qpeDir()+"Settings/"+filename+".playlist.conf"); //sets File property |
553 | lnk.setType("playlist/plain");// hey is this a REGISTERED mime type?!?!? ;D | 552 | lnk.setType("playlist/plain");// hey is this a REGISTERED mime type?!?!? ;D |
554 | lnk.setIcon("MPEGPlayer"); | 553 | lnk.setIcon("MPEGPlayer"); |
555 | if(!lnk.writeLink()) | 554 | if(!lnk.writeLink()) |
556 | qDebug("Writing doclink did not work"); | 555 | qDebug("Writing doclink did not work"); |
557 | 556 | ||
558 | if(fileDlg) | 557 | if(fileDlg) |
559 | delete fileDlg; | 558 | delete fileDlg; |
560 | } | 559 | } |
561 | 560 | ||
562 | 561 | ||
563 | void PlayListWidget::loadList( const DocLnk & lnk) { | 562 | void PlayListWidget::loadList( const DocLnk & lnk) { |
564 | 563 | qDebug("load list "+ lnk.name()+".playlist"); | |
565 | clearList(); | 564 | clearList(); |
566 | Config cfg( lnk.file()); | 565 | Config cfg( lnk.name()+".playlist"); |
567 | readConfig(cfg); | 566 | readConfig(cfg); |
568 | tabWidget->setCurrentPage(0); | 567 | tabWidget->setCurrentPage(0); |
569 | setCaption("OpiePlayer: "+lnk.name()); | 568 | setCaption("OpiePlayer: "+lnk.name()); |
570 | } | 569 | } |
571 | 570 | ||
572 | 571 | ||
573 | void PlayListWidget::setPlaylist( bool shown ) { | 572 | void PlayListWidget::setPlaylist( bool shown ) { |
574 | if ( shown ) | 573 | if ( shown ) |
575 | d->playListFrame->show(); | 574 | d->playListFrame->show(); |
576 | else | 575 | else |
577 | d->playListFrame->hide(); | 576 | d->playListFrame->hide(); |
578 | } | 577 | } |