mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Reset URL list and adjusted timeouts for for bootstrap file. Also avoid problems when shutting down.
This commit is contained in:
committed by
Roland Winklmeier
parent
631ffdb191
commit
e1421622b1
@@ -123,6 +123,7 @@ namespace BlackGui
|
||||
|
||||
void CAircraftModelStringCompleter::setCompleter(bool simChanged)
|
||||
{
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
QStringList modelStrings;
|
||||
CompleterSourceFlag dataSource = None;
|
||||
QString simInfo = m_currentSimulator.toQString();
|
||||
@@ -133,7 +134,7 @@ namespace BlackGui
|
||||
dataSource = DB;
|
||||
simInfo = QStringLiteral("DB models");
|
||||
}
|
||||
else if (ui->rb_ModelSet->isChecked())
|
||||
else if (ui->rb_ModelSet->isChecked() && sGui && sGui->getIContextSimulator())
|
||||
{
|
||||
if (!simChanged && m_currentDataSource == ModelSet) { return; }
|
||||
modelStrings = sGui->getIContextSimulator()->getModelSetCompleterStrings(true);
|
||||
|
||||
Reference in New Issue
Block a user