{
qDebug() << __PRETTY_FUNCTION__;
- bool accepted = true;
-
m_automaticUpdateEnabled = enabled;
//Show automatic update confirmation dialog
tr("Do you want to enable automatic location update with %1 min update interval?")
.arg(updateIntervalMsecs/1000/60));
m_automaticUpdateFirstStart = false;
- }
- else {
- if (!m_automaticUpdateFirstStart && m_automaticUpdateEnabled && accepted)
+ } else {
+ if (m_automaticUpdateEnabled && m_gps->isRunning()) {
m_ui->buildInformationBox(tr("Automatic location update enabled"));
-
- if (accepted && m_gps->isRunning() && m_automaticUpdateEnabled) {
if (updateIntervalMsecs < MIN_UPDATE_INTERVAL_MSECS)
m_automaticUpdateIntervalTimer->setInterval(MIN_UPDATE_INTERVAL_MSECS);
else
void SituareEngine::loginOk()
{
- qWarning() << __PRETTY_FUNCTION__;
+ qDebug() << __PRETTY_FUNCTION__;
m_loggedIn = true;
m_ui->loggedIn(m_loggedIn);
m_loggedIn = false;
m_ui->loggedIn(m_loggedIn);
m_facebookAuthenticator->clearAccountInformation(); // clear all
+ m_automaticUpdateEnabled = false;
+ m_automaticUpdateFirstStart = true;
}
void SituareEngine::refreshUserData()