mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Minor adjustments
* ignore empty root dir * check for empty context
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5789120ecc
commit
227190ab42
@@ -66,7 +66,7 @@ namespace BlackGui
|
||||
|
||||
void CModelMatcherLogComponent::ps_updateCallsignCompleter()
|
||||
{
|
||||
if (!sGui || !sGui->getIContextNetwork()->isConnected()) { return; }
|
||||
if (!sGui || !sGui->getIContextNetwork() || sGui->getIContextNetwork()->isEmptyObject() || !sGui->getIContextNetwork()->isConnected()) { return; }
|
||||
|
||||
const QStringList callsigns = sGui->getIContextNetwork()->getAircraftInRangeCallsigns().toStringList(false);
|
||||
QCompleter *completer = ui->le_Callsign->completer();
|
||||
|
||||
@@ -104,6 +104,7 @@ namespace BlackMisc
|
||||
|
||||
QStringList CXPlaneUtil::xplaneModelDirectories()
|
||||
{
|
||||
if (xplaneRootDir().isEmpty()) { return QStringList(); }
|
||||
return QStringList({ xplaneRootDir() });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user