OTHER: TODO Enable reconnect to xmms2d Done
If Promoe loses its connection with xmms2d, it will now ask if you want to try reconnecting.
This commit is contained in:
parent
c7e1a7fa6b
commit
92c7c30c49
2 changed files with 15 additions and 4 deletions
|
@ -94,13 +94,20 @@ Application::handleDisconnected ()
|
|||
if (closingDown ())
|
||||
return;
|
||||
|
||||
// TODO: enable reconnect
|
||||
QMessageBox::critical( NULL, "xmms2 daemon disconnected",
|
||||
int pressed =
|
||||
QMessageBox::warning( NULL, "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");
|
||||
QApplication::quit ();
|
||||
"Reconnect", "Quit Promoe");
|
||||
switch (pressed)
|
||||
{
|
||||
case 0:
|
||||
m_xmms2_client->connect ();
|
||||
break;
|
||||
default:
|
||||
QApplication::quit ();
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue