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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue