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
4
AUTHORS
4
AUTHORS
|
@ -24,6 +24,10 @@ N: Jonne Lehtinen
|
|||
E: jonne.lehtinen@tut.fi
|
||||
D: Lots of fixes.
|
||||
|
||||
N: Lucas Adam M Paul
|
||||
E: reilithion@gmail.com
|
||||
D: Some fixes
|
||||
|
||||
N: Tobias Rundström
|
||||
E: tru@xmms.org
|
||||
W: http://tobi.nu/
|
||||
|
|
|
@ -94,14 +94,21 @@ 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");
|
||||
"Reconnect", "Quit Promoe");
|
||||
switch (pressed)
|
||||
{
|
||||
case 0:
|
||||
m_xmms2_client->connect ();
|
||||
break;
|
||||
default:
|
||||
QApplication::quit ();
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue