X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=Client%2Fhttpclient.cpp;h=a71c10462a98db0b488440944c64182db8032b74;hb=fc6980e03ca04773cb927560e46afc7193639894;hp=547f3b8c3b0a14b1bd48a53377b7d2c37c7f757b;hpb=6bc1089e0f7de459eca37fdec9c61b08de94a6de;p=speedfreak diff --git a/Client/httpclient.cpp b/Client/httpclient.cpp index 547f3b8..a71c104 100644 --- a/Client/httpclient.cpp +++ b/Client/httpclient.cpp @@ -312,13 +312,18 @@ void HttpClient::ackOfLogin() if(errorcode != 0) { qDebug() << "errorcode:" << errorcode << reply->errorString(); QMessageBox::about(myMainw->settingsDialog, "Server does not recognize your username. Please registrate.",reply->errorString()); + myMainw->settingsDialog->usernameOk(false); } else { qDebug() << "errorcode:" << errorcode << reply->errorString(); QMessageBox::about(myMainw->settingsDialog, "Server reply to login", "User login " + reply->readAll()); + // here signal emit to mainwindow for username setting to main panel + emit loginOK(); + myMainw->settingsDialog->usernameOk(true); + myMainw->settingsDialog->close(); } - myMainw->settingsDialog->close(); + }