Moved log subscription to front

(see https://dev.vatsim-germany.org/boards/22/topics/2871?r=2875#message-2875)
This commit is contained in:
Klaus Basan
2016-06-12 22:57:15 +02:00
parent 6c3a57d648
commit 7d1a5b242d
2 changed files with 5 additions and 7 deletions

View File

@@ -301,10 +301,6 @@ void SwiftGuiStd::setContextAvailability()
sGui->getIContextApplication()->synchronizeLogSubscriptions();
sGui->getIContextApplication()->synchronizeLocalSettings();
}
else
{
// core has just become unavailable...
}
}
}

View File

@@ -64,6 +64,11 @@ void SwiftGuiStd::init()
this->m_mwaLogComponent = this->ui->comp_MainInfoArea->getLogComponent();
sGui->initMainApplicationWindow(this);
// log messages
m_logSubscriber.changeSubscription(CLogPattern().withSeverityAtOrAbove(CStatusMessage::SeverityInfo));
// style
this->initStyleSheet();
// with frameless window, we shift menu and statusbar into central widget
@@ -116,9 +121,6 @@ void SwiftGuiStd::init()
connect(sGui->getIContextNetwork(), &IContextNetwork::textMessageSent, this->ui->comp_MainInfoArea->getTextMessageComponent(), &CTextMessageComponent::onTextMessageSent);
connect(this->m_timerContextWatchdog, &QTimer::timeout, this, &SwiftGuiStd::ps_handleTimerBasedUpdates);
// log messages
m_logSubscriber.changeSubscription(CLogPattern().withSeverityAtOrAbove(CStatusMessage::SeverityInfo));
// start timers, update timers will be started when network is connected
this->m_timerContextWatchdog->start(2500);