{
qDebug() << __PRETTY_FUNCTION__;
- if (visibility) {
+ if (visibility && m_loggedIn) {
m_ownLocationCrosshair->show();
m_drawOwnLocationCrosshair = true;
drawOwnLocationCrosshair(QSize(m_viewPortWidth, m_viewPortHeight));
void MainWindow::updateItemVisibility(bool show)
{
qDebug() << __PRETTY_FUNCTION__;
+
+ setOwnLocationCrosshairVisibility(show);
if(show) {
m_friendsListPanel->show();
m_userPanel->show();
m_userPanelSidebar->show();
- if(m_drawOwnLocationCrosshair) {
- m_ownLocationCrosshair->show();
- setGPSButtonEnabled(false);
- emit gpsTriggered(false);
- }
} else {
m_friendsListPanel->closePanel();
m_friendsListPanel->hide();
m_userPanel->closePanel();
m_userPanel->hide();
m_userPanelSidebar->hide();
- m_ownLocationCrosshair->hide();
}
}