OTHER: Make 'Quit server on close' option work
This commit is contained in:
parent
ef687a9375
commit
5e8d83ca8e
8 changed files with 102 additions and 37 deletions
|
|
@ -121,20 +121,6 @@ MainDisplay::MainDisplay (QWidget *parent) : SkinDisplay(parent)
|
|||
this, SLOT (setPlaytime (uint32_t)));
|
||||
|
||||
setupServerConfig ();
|
||||
|
||||
//TODO: move to better place
|
||||
connect (&client, SIGNAL(disconnected(XClient *)), this, SLOT(handleDisconnected ()));
|
||||
}
|
||||
|
||||
void
|
||||
MainDisplay::handleDisconnected ()
|
||||
{
|
||||
QMessageBox::critical( this, "xmms2 daemon disconnected",
|
||||
"The xmms2 deamon has disconnected\n"
|
||||
"This could be because the server crashed\n"
|
||||
"or because another client has shut down the sever.",
|
||||
"Quit Promoe");
|
||||
qApp->quit ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ class MainDisplay : public SkinDisplay
|
|||
protected slots:
|
||||
void serverConfigChanged (QString key, QString value);
|
||||
void setRepeatAllEnabled (bool enabled);
|
||||
void handleDisconnected ();
|
||||
|
||||
protected:
|
||||
void SetupPushButtons (void);
|
||||
void SetupToggleButtons (void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue