mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T441, use distributor preferences in "reduce dialog"
This commit is contained in:
@@ -36,6 +36,11 @@ namespace BlackMisc
|
||||
return empty;
|
||||
}
|
||||
|
||||
CDistributor CDistributorListPreferences::getFirstOrDefaultDistributor(const CSimulatorInfo &simulator) const
|
||||
{
|
||||
return this->getDistributors(simulator).frontOrDefault();
|
||||
}
|
||||
|
||||
void CDistributorListPreferences::setDistributors(const CDistributorList &distributors, const CSimulatorInfo &simulator)
|
||||
{
|
||||
Q_ASSERT_X(simulator.isSingleSimulator(), Q_FUNC_INFO, "Need single simulator");
|
||||
|
||||
@@ -40,6 +40,9 @@ namespace BlackMisc
|
||||
//! Get distributors
|
||||
const CDistributorList &getDistributors(const CSimulatorInfo &simulator) const;
|
||||
|
||||
//! Get distributor for simulator
|
||||
CDistributor getFirstOrDefaultDistributor(const CSimulatorInfo &simulator) const;
|
||||
|
||||
//! Last updated simulator
|
||||
const CSimulatorInfo &getLastUpdatedSimulator() const { return m_lastUpdatedSimulator; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user