mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #768, return DB keys as set
This commit is contained in:
@@ -131,7 +131,7 @@ namespace BlackGui
|
||||
ui->tvp_StashAircraftModels->updateContainerMaybeAsync(models);
|
||||
}
|
||||
|
||||
int CDbStashComponent::unstashModels(QList<int> keys)
|
||||
int CDbStashComponent::unstashModels(QSet<int> keys)
|
||||
{
|
||||
if (keys.isEmpty()) { return 0; }
|
||||
return ui->tvp_StashAircraftModels->removeDbKeys(keys);
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace BlackGui
|
||||
BlackMisc::CStatusMessage validateStashModel(const BlackMisc::Simulation::CAircraftModel &model, bool allowReplace) const;
|
||||
|
||||
//! Unstash given models with keys
|
||||
int unstashModels(QList<int> keys);
|
||||
int unstashModels(QSet<int> keys);
|
||||
|
||||
//! Unstash given models by model string
|
||||
int unstashModels(QStringList modelStrings);
|
||||
|
||||
Reference in New Issue
Block a user