fix reconnect if already connected
This commit is contained in:
parent
203bd7a353
commit
a887f5c211
3 changed files with 5 additions and 2 deletions
|
@ -7,6 +7,5 @@ int main(int argc, char *argv[])
|
|||
MainScreen w;
|
||||
w.show();
|
||||
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ MainScreen::MainScreen(QWidget *parent) :QMainWindow(parent), ui(new Ui::MainScr
|
|||
|
||||
|
||||
updateDates();
|
||||
|
||||
std::cout << "hello world" << std::endl;
|
||||
|
||||
}
|
||||
|
||||
|
@ -166,6 +166,9 @@ void MainScreen::uiSetDisconnectMode()
|
|||
|
||||
void MainScreen::uiSetConnectMode()
|
||||
{
|
||||
if (this->jceLog != NULL)
|
||||
delete jceLog;
|
||||
|
||||
string username;
|
||||
string password;
|
||||
if ((ui->usrnmLineEdit->text().isEmpty()) || (ui->pswdLineEdit->text().isEmpty()))
|
||||
|
|
|
@ -27,6 +27,7 @@ void jceLogin::makeConnection() throw (jceStatus)
|
|||
{
|
||||
if (makeFirstVisit() == true) //requst and send first validation
|
||||
{
|
||||
|
||||
status = jceStatus::JCE_FIRST_VALIDATION_PASSED;
|
||||
if (checkValidation() == true) //check if username and password are matching
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue