summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-08-16 00:48:49 (UTC)
committer llornkcor <llornkcor>2002-08-16 00:48:49 (UTC)
commitf25db7780ff234b2770ac13d8c02887b79a57a26 (patch) (side-by-side diff)
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) {
void PlayListWidget::setActiveWindow() {
+ qDebug("SETTING active window");
+
// When we get raised we need to ensure that it switches views
@@ -958,11 +960,7 @@ void PlayListWidget::listDelete() {
{
- file = audioView->selectedItem()->text(0);
-// Global::findDocuments(&files, "audio/*");
-// AppLnkSet appFiles;
- QListIterator<DocLnk> dit( files.children() );
- for ( ; dit.current(); ++dit ) {
- if( dit.current()->name() == file) {
-// qDebug(file);
- LnkProperties prop( dit.current() );
-// connect(&prop, SIGNAL(select(const AppLnk *)), this, SLOT(externalSelected(const AppLnk *)));
+ file = audioView->currentItem()->text(0);
+ QListIterator<DocLnk> Pdit( files.children() );
+ for ( ; Pdit.current(); ++Pdit ) {
+ if( Pdit.current()->name() == file) {
+ LnkProperties prop( Pdit.current() );
prop.showMaximized();
@@ -1081,6 +1079,2 @@ void PlayListWidget::openFile() {
// filename.replace(QRegExp("%20")," ");
- if(filename.find(" ",0,TRUE) != -1 || filename.find("%20",0,TRUE) != -1) {
- QMessageBox::message("Note","Spaces in urls are not allowed.");
- return;
- } else {
qDebug("Selected filename is "+filename);
@@ -1108,3 +1102,2 @@ void PlayListWidget::openFile() {
}
- }
}
@@ -1232,6 +1225,4 @@ void PlayListWidget::readm3u(const QString &filename) {
s=t.readLine();
- if(s.find(" ",0,TRUE) != -1 || s.find("%20",0,TRUE) != -1) {
- QMessageBox::message("Note","Spaces in urls are not allowed.");
- }
- else if(s.find("#",0,TRUE) == -1) {
+
+ if(s.find("#",0,TRUE) == -1) {
if(s.find(" ",0,TRUE) == -1) { // not sure if this is neede since cf uses vfat