OTHER: get rid of unused sync connection
This commit is contained in:
parent
7dbdf3bb65
commit
f524eb5d2d
2 changed files with 1 additions and 16 deletions
|
|
@ -68,7 +68,7 @@ XClient::esperanza_dir ()
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
XClient::XClient (QObject *parent, const std::string &name) : QObject (parent), m_sync (name + "-sync")
|
XClient::XClient (QObject *parent, const std::string &name) : QObject (parent)
|
||||||
{
|
{
|
||||||
m_client = NULL;
|
m_client = NULL;
|
||||||
m_isconnected = false;
|
m_isconnected = false;
|
||||||
|
|
@ -147,15 +147,6 @@ try_again:
|
||||||
|
|
||||||
m_client->setMainloop (new XmmsQT4 (m_client->getConnection ()));
|
m_client->setMainloop (new XmmsQT4 (m_client->getConnection ()));
|
||||||
|
|
||||||
if (sync) {
|
|
||||||
try {
|
|
||||||
m_sync.connect (ipcpath);
|
|
||||||
}
|
|
||||||
catch (Xmms::connection_error &e) {
|
|
||||||
qWarning ("Couldn't establish sync connection!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
m_isconnected = true;
|
m_isconnected = true;
|
||||||
// useing normal disconnect callback, if that causes problems,
|
// useing normal disconnect callback, if that causes problems,
|
||||||
// an own method schould be created
|
// an own method schould be created
|
||||||
|
|
|
||||||
|
|
@ -83,10 +83,6 @@ class XClient : public QObject {
|
||||||
return m_active_playlist;
|
return m_active_playlist;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Xmms::Client *sync () const {
|
|
||||||
return &m_sync;
|
|
||||||
};
|
|
||||||
|
|
||||||
static QString stdToQ (const std::string &);
|
static QString stdToQ (const std::string &);
|
||||||
static std::string qToStd (const QString &);
|
static std::string qToStd (const QString &);
|
||||||
|
|
||||||
|
|
@ -131,8 +127,6 @@ class XClient : public QObject {
|
||||||
XCollection *m_collection;
|
XCollection *m_collection;
|
||||||
PlaylistModel *m_active_playlist;
|
PlaylistModel *m_active_playlist;
|
||||||
bool m_isconnected;
|
bool m_isconnected;
|
||||||
|
|
||||||
Xmms::Client m_sync;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue