OTHER: Fix crash on disconnected server.
Promoe now displays a message box, telling about what happened and terminates correctly after that
This commit is contained in:
parent
c0ca792481
commit
8221642227
4 changed files with 22 additions and 3 deletions
|
@ -36,7 +36,6 @@ class XClient : public QObject {
|
|||
public:
|
||||
XClient (QObject *, const std::string &);
|
||||
|
||||
void disconnect ();
|
||||
bool connect (const char *path = NULL, const bool &sync = false,
|
||||
QWidget* parent = NULL);
|
||||
static void propDictToQHash (const std::string &key,
|
||||
|
@ -92,6 +91,9 @@ class XClient : public QObject {
|
|||
void gotConnection (XClient *);
|
||||
void disconnected (XClient *);
|
||||
|
||||
public slots:
|
||||
void disconnect ();
|
||||
|
||||
protected:
|
||||
Xmms::Client *m_client;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue