Some minor fixes (typos, doxygen, etc.) found during #846

This commit is contained in:
Klaus Basan
2016-12-29 00:39:09 +01:00
committed by Mathew Sutcliffe
parent 8341da2310
commit 1e85842c71
7 changed files with 13 additions and 8 deletions

View File

@@ -112,7 +112,6 @@ namespace BlackGui
const auto currentAircraftParts = sGui->getIContextNetwork()->getRemoteAircraftParts(cs, -1).frontOrDefault();
const auto aircraftPartsHistory = sGui->getIContextNetwork()->getAircraftPartsHistory(cs);
QString html;
if (currentAircraftParts == CAircraftParts() && aircraftPartsHistory.isEmpty())
{

View File

@@ -40,8 +40,8 @@ namespace BlackGui
void CRegisterComponent::ps_update()
{
if (!sGui) { return; }
Q_ASSERT_X(sGui->supportsContexts(), Q_FUNC_INFO, "Application does not support contexts");
// if not supported, do nothing
if (!sGui || !sGui->supportsContexts()) { return; }
ui->tvp_RegisteredComponents->updateContainer(sGui->getIContextApplication()->getRegisteredApplications());
}
} // ns

View File

@@ -36,7 +36,7 @@ namespace BlackGui
explicit CRegisterComponent(QWidget *parent = nullptr);
//! Destructor
~CRegisterComponent();
virtual ~CRegisterComponent();
private slots:
//! Update data