summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-08-16 00:48:49 (UTC)
committer llornkcor <llornkcor>2002-08-16 00:48:49 (UTC)
commitf25db7780ff234b2770ac13d8c02887b79a57a26 (patch) (unidiff)
tree534b91999f3f713ee4869bd53ffbc45840338d96
parent47e3b3c20e17b257fb2d3d56bace2a89a8f0d28b (diff)
downloadopie-f25db7780ff234b2770ac13d8c02887b79a57a26.zip
opie-f25db7780ff234b2770ac13d8c02887b79a57a26.tar.gz
opie-f25db7780ff234b2770ac13d8c02887b79a57a26.tar.bz2
spaces thing crept back in I think
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp27
1 files changed, 9 insertions, 18 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp
index 26103c3..65dc5fb 100644
--- a/core/multimedia/opieplayer/playlistwidget.cpp
+++ b/core/multimedia/opieplayer/playlistwidget.cpp
@@ -499,2 +499,4 @@ void PlayListWidget::setDocument(const QString& fileref) {
499void PlayListWidget::setActiveWindow() { 499void PlayListWidget::setActiveWindow() {
500 qDebug("SETTING active window");
501
500 // When we get raised we need to ensure that it switches views 502 // When we get raised we need to ensure that it switches views
@@ -958,11 +960,7 @@ void PlayListWidget::listDelete() {
958 { 960 {
959 file = audioView->selectedItem()->text(0); 961 file = audioView->currentItem()->text(0);
960// Global::findDocuments(&files, "audio/*"); 962 QListIterator<DocLnk> Pdit( files.children() );
961// AppLnkSet appFiles; 963 for ( ; Pdit.current(); ++Pdit ) {
962 QListIterator<DocLnk> dit( files.children() ); 964 if( Pdit.current()->name() == file) {
963 for ( ; dit.current(); ++dit ) { 965 LnkProperties prop( Pdit.current() );
964 if( dit.current()->name() == file) {
965// qDebug(file);
966 LnkProperties prop( dit.current() );
967// connect(&prop, SIGNAL(select(const AppLnk *)), this, SLOT(externalSelected(const AppLnk *)));
968 prop.showMaximized(); 966 prop.showMaximized();
@@ -1081,6 +1079,2 @@ void PlayListWidget::openFile() {
1081// filename.replace(QRegExp("%20")," "); 1079// filename.replace(QRegExp("%20")," ");
1082 if(filename.find(" ",0,TRUE) != -1 || filename.find("%20",0,TRUE) != -1) {
1083 QMessageBox::message("Note","Spaces in urls are not allowed.");
1084 return;
1085 } else {
1086 qDebug("Selected filename is "+filename); 1080 qDebug("Selected filename is "+filename);
@@ -1108,3 +1102,2 @@ void PlayListWidget::openFile() {
1108 } 1102 }
1109 }
1110 } 1103 }
@@ -1232,6 +1225,4 @@ void PlayListWidget::readm3u(const QString &filename) {
1232 s=t.readLine(); 1225 s=t.readLine();
1233 if(s.find(" ",0,TRUE) != -1 || s.find("%20",0,TRUE) != -1) { 1226
1234 QMessageBox::message("Note","Spaces in urls are not allowed."); 1227 if(s.find("#",0,TRUE) == -1) {
1235 }
1236 else if(s.find("#",0,TRUE) == -1) {
1237 if(s.find(" ",0,TRUE) == -1) { // not sure if this is neede since cf uses vfat 1228 if(s.find(" ",0,TRUE) == -1) { // not sure if this is neede since cf uses vfat