summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp
index 3171a84..cb58888 100644
--- a/core/multimedia/opieplayer/playlistwidget.cpp
+++ b/core/multimedia/opieplayer/playlistwidget.cpp
@@ -22,24 +22,25 @@
22#include <qpe/qpemenubar.h> 22#include <qpe/qpemenubar.h>
23#include <qpe/qpetoolbar.h> 23#include <qpe/qpetoolbar.h>
24#include <qpe/fileselector.h> 24#include <qpe/fileselector.h>
25#include <qpe/qpeapplication.h> 25#include <qpe/qpeapplication.h>
26 26
27#include <qpe/applnk.h> 27#include <qpe/applnk.h>
28#include <qpe/config.h> 28#include <qpe/config.h>
29#include <qpe/global.h> 29#include <qpe/global.h>
30#include <qpe/resource.h> 30#include <qpe/resource.h>
31#include <qaction.h> 31#include <qaction.h>
32#include <qimage.h> 32#include <qimage.h>
33#include <qfile.h> 33#include <qfile.h>
34#include <qdir.h>
34#include <qlayout.h> 35#include <qlayout.h>
35#include <qlabel.h> 36#include <qlabel.h>
36#include <qlist.h> 37#include <qlist.h>
37#include <qlistbox.h> 38#include <qlistbox.h>
38#include <qmainwindow.h> 39#include <qmainwindow.h>
39#include <qmessagebox.h> 40#include <qmessagebox.h>
40#include <qtoolbutton.h> 41#include <qtoolbutton.h>
41#include <qtabwidget.h> 42#include <qtabwidget.h>
42#include <qlistview.h> 43#include <qlistview.h>
43#include <qpoint.h> 44#include <qpoint.h>
44#include <qlineedit.h> 45#include <qlineedit.h>
45#include <qpushbutton.h> 46#include <qpushbutton.h>
@@ -531,29 +532,29 @@ bool PlayListWidget::last() {
531void PlayListWidget::saveList() { 532void PlayListWidget::saveList() {
532 533
533 QString filename; 534 QString filename;
534 InputDialog *fileDlg; 535 InputDialog *fileDlg;
535 fileDlg=new InputDialog(this,"Save Playlist",TRUE, 0); 536 fileDlg=new InputDialog(this,"Save Playlist",TRUE, 0);
536 fileDlg->exec(); 537 fileDlg->exec();
537 if( fileDlg->result() == 1 ) { 538 if( fileDlg->result() == 1 ) {
538 filename = fileDlg->LineEdit1->text();//+".playlist"; 539 filename = fileDlg->LineEdit1->text();//+".playlist";
539 qDebug("saving playlist "+filename+".playlist"); 540 qDebug("saving playlist "+filename+".playlist");
540 Config cfg( filename +".playlist"); 541 Config cfg( filename +".playlist");
541 writeConfig( cfg ); 542 writeConfig( cfg );
542 DocLnk lnk; 543 DocLnk lnk;
543 lnk.setName( filename); //sets file name
544// lnk.setComment( ""); 544// lnk.setComment( "");
545 lnk.setFile(QPEApplication::qpeDir()+"Settings/"+filename+".playlist.conf"); //sets File property 545 lnk.setFile(QDir::homeDirPath()+"/Settings/"+filename+".playlist.conf"); //sets File property
546 lnk.setType("playlist/plain");// hey is this a REGISTERED mime type?!?!? ;D 546 lnk.setType("playlist/plain");// hey is this a REGISTERED mime type?!?!? ;D
547 lnk.setIcon("mpegplayer/playlist2"); 547 lnk.setIcon("mpegplayer/playlist2");
548 lnk.setName( filename); //sets file name
548 if(!lnk.writeLink()) 549 if(!lnk.writeLink())
549 qDebug("Writing doclink did not work"); 550 qDebug("Writing doclink did not work");
550 } 551 }
551 552
552 if(fileDlg) 553 if(fileDlg)
553 delete fileDlg; 554 delete fileDlg;
554 555
555} 556}
556 557
557 558
558void PlayListWidget::loadList( const DocLnk & lnk) { 559void PlayListWidget::loadList( const DocLnk & lnk) {
559 qDebug("load list "+ lnk.name()+".playlist"); 560 qDebug("load list "+ lnk.name()+".playlist");