From 209c00b43013d3aaed2ecdd06a9a03e46ae19fec Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 28 Oct 2019 23:55:43 +0100 Subject: [PATCH] Style --- src/blackcore/context/contextnetworkimpl.cpp | 8 ++++---- src/blackgui/components/logincomponent.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/blackcore/context/contextnetworkimpl.cpp b/src/blackcore/context/contextnetworkimpl.cpp index 59c83e9c1..0312b4767 100644 --- a/src/blackcore/context/contextnetworkimpl.cpp +++ b/src/blackcore/context/contextnetworkimpl.cpp @@ -101,10 +101,10 @@ namespace BlackCore connect(m_airspace, &CAirspaceMonitor::changedAtcStationsBooked, this, &CContextNetwork::changedAtcStationsBooked, Qt::QueuedConnection); connect(m_airspace, &CAirspaceMonitor::changedAtcStationOnlineConnectionStatus, this, &CContextNetwork::changedAtcStationOnlineConnectionStatus, Qt::QueuedConnection); connect(m_airspace, &CAirspaceMonitor::changedAircraftInRange, this, &CContextNetwork::changedAircraftInRange, Qt::QueuedConnection); - connect(m_airspace, &CAirspaceMonitor::removedAircraft, this, &IContextNetwork::removedAircraft, Qt::QueuedConnection); // DBus - connect(m_airspace, &CAirspaceMonitor::readyForModelMatching, this, &CContextNetwork::readyForModelMatching, Qt::QueuedConnection); - connect(m_airspace, &CAirspaceMonitor::addedAircraft, this, &CContextNetwork::addedAircraft, Qt::QueuedConnection); - connect(m_airspace, &CAirspaceMonitor::changedAtisReceived , this, &CContextNetwork::onChangedAtisReceived, Qt::QueuedConnection); + connect(m_airspace, &CAirspaceMonitor::removedAircraft, this, &IContextNetwork::removedAircraft, Qt::QueuedConnection); // DBus + connect(m_airspace, &CAirspaceMonitor::readyForModelMatching, this, &CContextNetwork::readyForModelMatching, Qt::QueuedConnection); + connect(m_airspace, &CAirspaceMonitor::addedAircraft, this, &CContextNetwork::addedAircraft, Qt::QueuedConnection); + connect(m_airspace, &CAirspaceMonitor::changedAtisReceived, this, &CContextNetwork::onChangedAtisReceived, Qt::QueuedConnection); } CContextNetwork *CContextNetwork::registerWithDBus(BlackMisc::CDBusServer *server) diff --git a/src/blackgui/components/logincomponent.cpp b/src/blackgui/components/logincomponent.cpp index 15c9f40e7..62385b755 100644 --- a/src/blackgui/components/logincomponent.cpp +++ b/src/blackgui/components/logincomponent.cpp @@ -290,7 +290,7 @@ namespace BlackGui // Login mode const CLoginMode mode = ui->frp_LoginMode->getLoginMode(); - if(mode.isObserver()) { CLogMessage(this).info(u"login in observer mode"); } + if (mode.isObserver()) { CLogMessage(this).info(u"login in observer mode"); } // Server currentServer = this->getCurrentServer(); @@ -475,14 +475,14 @@ namespace BlackGui void CLoginComponent::onDetailsTabChanged(int index) { - Q_UNUSED(index); + Q_UNUSED(index) const bool showNetwork = (ui->tw_Details->currentWidget() != ui->tb_FsdDetails); const CServer server = this->getCurrentServer(); // only override if not yet enabled if (!ui->form_FsdDetails->isFsdSetupEnabled()) { ui->form_FsdDetails->setValue(server.getFsdSetup()); } - if (!ui->form_Voice->isVoiceSetupEnabled()) { ui->form_Voice->setValue(server.getVoiceSetup()); } + if (!ui->form_Voice->isVoiceSetupEnabled()) { ui->form_Voice->setValue(server.getVoiceSetup()); } ui->tw_Network->setVisible(showNetwork); ui->tw_Details->setMinimumHeight(showNetwork ? 0 : 125);