fix reconnect if already connected

This commit is contained in:
Liran BN 2014-06-17 17:09:51 +03:00
parent 203bd7a353
commit a887f5c211
3 changed files with 5 additions and 2 deletions

View file

@ -7,6 +7,5 @@ int main(int argc, char *argv[])
MainScreen w;
w.show();
return a.exec();
}

View file

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

View file

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