connect(m_situareService, SIGNAL(error(int)),
this, SLOT(error(int)));
+ connect(m_situareService, SIGNAL(error(int)),
+ m_ui, SIGNAL(messageSendingFailed(int)));
+
connect(m_situareService, SIGNAL(reverseGeoReady(QString)),
m_ui, SIGNAL(reverseGeoReady(QString)));
connect(m_situareService, SIGNAL(updateWasSuccessful()),
m_ui, SIGNAL(updateWasSuccessful()));
-
- connect(m_situareService, SIGNAL(error(int)),
- m_ui, SIGNAL(messageSendingFailed(int)));
}
void SituareEngine::updateWasSuccessful()
QT += network \
webkit
-DEFINES += QT_NO_DEBUG_OUTPUT
+#DEFINES += QT_NO_DEBUG_OUTPUT
simulator {
SOURCES += network/networkhandlerprivatestub.cpp \
m_gpsToggleAct->setChecked(enabled);
- if(m_loggedIn)
- setOwnLocationCrosshairVisibility(!enabled);
+ setOwnLocationCrosshairVisibility(!enabled);
m_autoCenteringAct->setVisible(enabled);
}
void MainWindow::updateItemVisibility(bool show)
{
qDebug() << __PRETTY_FUNCTION__;
-
- setOwnLocationCrosshairVisibility(show);
if(show) {
m_friendsListPanel->show();
m_friendsListPanelSidebar->show();
m_userPanel->show();
m_userPanelSidebar->show();
+ if(!m_gpsToggleAct->isChecked())
+ setOwnLocationCrosshairVisibility(show);
} else {
m_friendsListPanel->closePanel();
m_userPanel->closePanel();
m_userPanel->hide();
m_userPanelSidebar->hide();
+ setOwnLocationCrosshairVisibility(false);
}
}
if (!m_messageUpdateVerified) {
if (m_messageText != m_backupMessage && !m_backupMessage.isEmpty())
- emit notificateUpdateFailing(tr("Location update failed\n\nYour message is saved to "
- "textbox until sending will succeed"), true);
+// emit notificateUpdateFailing(tr("Location update failed\n\nYour message is saved to "
+// "textbox until sending will succeed"), true);
+ emit notificateUpdateFailing(tr("Location update failed, please try again"), false);
}
m_messageUpdateVerified = true;