Formatting, minor tweaks

refs #369, refs #371, refs #372
This commit is contained in:
Klaus Basan
2015-02-09 19:50:21 +01:00
parent f0db7ed660
commit 45bace425d
6 changed files with 13 additions and 12 deletions

View File

@@ -223,14 +223,14 @@ namespace BlackGui
void CAtcStationComponent::ps_requestOnlineStationsUpdate()
{
this->m_updateTimer->fireTimer();
this->m_timestampLastReadOnlineStations = CUpdateTimer::epoch();
this->m_timestampLastReadOnlineStations = CUpdateTimer::epoch(); // mark as outdated
}
void CAtcStationComponent::ps_infoAreaTabBarChanged(int index)
{
// ignore in those cases
if (!this->isVisibleWidget()) return;
if (this->isParentDockWidgetFloating()) return;
if (!this->isVisibleWidget()) { return; }
if (this->isParentDockWidgetFloating()) { return; }
// here I know I am the selected widget, update, but keep GUI responsive (-> timer)
QTimer::singleShot(1000, this, SLOT(update()));