force users to log out their unregistered session after logging in with a new registered account

This commit is contained in:
Max-Wilhelm Bruker 2011-03-02 17:18:44 +01:00
parent 1bee788210
commit 3bb1d9a1de
6 changed files with 10 additions and 3 deletions

View file

@ -176,6 +176,7 @@ void MainWindow::serverError(ResponseCode r)
{
switch (r) {
case RespWrongPassword: QMessageBox::critical(this, tr("Error"), tr("Invalid login data.")); break;
case RespWouldOverwriteOldSession: QMessageBox::critical(this, tr("Error"), tr("There is already an active session using this user name.\nPlease close that session first and re-login.")); break;
default: ;
}
}