Fixed bugs 5711 and 5832. Now graph's line wont draw out of the diagram and messagebo...
authorJanne Änäkkälä <janne_anakkala@hotmail.com>
Fri, 28 May 2010 11:44:35 +0000 (14:44 +0300)
committerJanne Änäkkälä <janne_anakkala@hotmail.com>
Fri, 28 May 2010 11:44:35 +0000 (14:44 +0300)
Client/accrealtimedialog.cpp
Client/calculate.cpp
Client/httpclient.cpp
Client/settingsdialog.cpp

index 4b46af1..4406a08 100644 (file)
@@ -185,6 +185,7 @@ void AccRealTimeDialog::readAccelerometerData()
             {
                 resultDialog->setValue(i*10,tempMap[i*10]);
             }
             {
                 resultDialog->setValue(i*10,tempMap[i*10]);
             }
+            calculate->reset();
             resultDialog->show();
             this->hide();
         }
             resultDialog->show();
             this->hide();
         }
index edd4246..415655c 100644 (file)
@@ -66,6 +66,7 @@ void Calculate::reset()
 
     checkPointCounter = 0;
     checkPoint = speedCheckPoints[checkPointCounter];
 
     checkPointCounter = 0;
     checkPoint = speedCheckPoints[checkPointCounter];
+    valuesMap.clear();
 
 }
 
 
 }
 
index e43f761..6e43dfd 100644 (file)
@@ -407,7 +407,7 @@ void HttpClient::ackOfLogin()
         qDebug() <<  "errorcode:" << errorcode << reply->errorString();
        if(myMainw->settingsDialog)
        {
         qDebug() <<  "errorcode:" << errorcode << reply->errorString();
        if(myMainw->settingsDialog)
        {
-               QMessageBox::about(myMainw->settingsDialog, "Server does not recognize your username. Please registrate.",reply->errorString());
+                QMessageBox::about(myMainw->settingsDialog, "Wrong username or password!","Please try again.");
                myMainw->settingsDialog->usernameOk(false);
        }
     }
                myMainw->settingsDialog->usernameOk(false);
        }
     }
index 935b88d..4729a01 100644 (file)
@@ -206,10 +206,9 @@ void SettingsDialog::usernameOk(bool isOk)
     else
     {
         ui->setUserPushButton->setText("Log in");
     else
     {
         ui->setUserPushButton->setText("Log in");
-        ui->setUserUsernameLineEdit->clear();
         ui->setUserPasswordLineEdit->clear();
         ui->setUserPasswordLineEdit->clear();
-        this->username = ui->setUserUsernameLineEdit->text();
-        this->password = ui->setUserPasswordLineEdit->text();
+        this->username = "";
+        this->password = "";
         saveLogin( this->username, this->password);
         ui->pushButtonProfile->setDisabled(true);
     }
         saveLogin( this->username, this->password);
         ui->pushButtonProfile->setDisabled(true);
     }