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
|
E: jonne.lehtinen@tut.fi
|
||||||
D: Lots of fixes.
|
D: Lots of fixes.
|
||||||
|
|
||||||
|
N: Lucas Adam M Paul
|
||||||
|
E: reilithion@gmail.com
|
||||||
|
D: Some fixes
|
||||||
|
|
||||||
N: Tobias Rundström
|
N: Tobias Rundström
|
||||||
E: tru@xmms.org
|
E: tru@xmms.org
|
||||||
W: http://tobi.nu/
|
W: http://tobi.nu/
|
||||||
|
|
|
@ -94,13 +94,20 @@ Application::handleDisconnected ()
|
||||||
if (closingDown ())
|
if (closingDown ())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// TODO: enable reconnect
|
int pressed =
|
||||||
QMessageBox::critical( NULL, "xmms2 daemon disconnected",
|
QMessageBox::warning( NULL, "xmms2 daemon disconnected",
|
||||||
"The xmms2 deamon has disconnected\n"
|
"The xmms2 deamon has disconnected\n"
|
||||||
"This could be because the server crashed\n"
|
"This could be because the server crashed\n"
|
||||||
"or because another client has shut down the sever.",
|
"or because another client has shut down the sever.",
|
||||||
"Quit Promoe");
|
"Reconnect", "Quit Promoe");
|
||||||
QApplication::quit ();
|
switch (pressed)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
m_xmms2_client->connect ();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
QApplication::quit ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue