summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/qmmp/files/qmmp-0.2.3-fix-playlist-download.patch')
-rw-r--r--media-sound/qmmp/files/qmmp-0.2.3-fix-playlist-download.patch73
1 files changed, 73 insertions, 0 deletions
diff --git a/media-sound/qmmp/files/qmmp-0.2.3-fix-playlist-download.patch b/media-sound/qmmp/files/qmmp-0.2.3-fix-playlist-download.patch
new file mode 100644
index 000000000000..a2921d541a28
--- /dev/null
+++ b/media-sound/qmmp/files/qmmp-0.2.3-fix-playlist-download.patch
@@ -0,0 +1,73 @@
+Index: src/ui/addurldialog.h
+===================================================================
+--- old/src/ui/addurldialog.h (revision 774)
++++ new/src/ui/addurldialog.h (working copy)
+@@ -1,5 +1,5 @@
+ /***************************************************************************
+- * Copyright (C) 2006-2008 by Ilya Kotov *
++ * Copyright (C) 2006-2009 by Ilya Kotov *
+ * forkotov02@hotmail.ru *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+@@ -48,8 +48,7 @@
+ virtual void accept();
+
+ private slots:
+- void processResponse(int, bool);
+- void readResponse(const QHttpResponseHeader&);
++ void readResponse(bool);
+
+ private:
+ void setModel(PlayListModel*);
+Index: src/ui/addurldialog.cpp
+===================================================================
+--- old/src/ui/addurldialog.cpp (revision 774)
++++ new/src/ui/addurldialog.cpp (working copy)
+@@ -1,5 +1,5 @@
+ /***************************************************************************
+- * Copyright (C) 2006-2008 by Ilya Kotov *
++ * Copyright (C) 2006-2009 by Ilya Kotov *
+ * forkotov02@hotmail.ru *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+@@ -39,9 +39,7 @@
+ m_history = settings.value("URLDialog/history").toStringList();
+ urlComboBox->addItems(m_history);
+ m_http = new QHttp(this);
+- connect(m_http, SIGNAL(requestFinished (int, bool)), SLOT(processResponse(int, bool)));
+- connect(m_http, SIGNAL(readyRead (const QHttpResponseHeader&)),
+- SLOT(readResponse(const QHttpResponseHeader&)));
++ connect(m_http, SIGNAL(done (bool)), SLOT(readResponse(bool)));
+
+ //use global proxy settings
+ if (settings.value ("Proxy/use_proxy", FALSE).toBool())
+@@ -104,23 +102,16 @@
+ QDialog::accept();
+ }
+
+-void AddUrlDialog::processResponse(int, bool error)
++void AddUrlDialog::readResponse(bool error)
+ {
+ if (error)
+- {
+ QMessageBox::critical (this, tr("Error"), m_http->errorString ());
+- QDialog::accept();
+- }
+-}
+-
+-void AddUrlDialog::readResponse(const QHttpResponseHeader&)
+-{
+- QString s = urlComboBox->currentText();
+- PlaylistFormat* prs = PlaylistParser::instance()->findByPath(s);
+- if (prs)
++ else
+ {
+- m_model->addFiles(prs->decode(m_http->readAll()));
+- return;
++ QString s = urlComboBox->currentText();
++ PlaylistFormat* prs = PlaylistParser::instance()->findByPath(s);
++ if (prs)
++ m_model->addFiles(prs->decode(m_http->readAll()));
+ }
+ QDialog::accept();
+ }