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:
Lucas Adam M Paul 2008-11-30 13:36:57 -07:00 committed by Thomas Frauendorfer
parent c7e1a7fa6b
commit 92c7c30c49
2 changed files with 15 additions and 4 deletions

View file

@ -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/

View file

@ -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)