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