mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
refs #751, improved model writing to DB
* a pending request can be aborted when taking too long * success / directWrite flags in signals
This commit is contained in:
committed by
Roland Winklmeier
parent
ced9f5294e
commit
23ccb35ed8
@@ -282,12 +282,12 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
void CDbStashComponent::ps_publishedModelsResponse(const CAircraftModelList &publishedModels, const CAircraftModelList &skippedModels, const CStatusMessageList &msgs)
|
||||
void CDbStashComponent::ps_publishedModelsResponse(const CAircraftModelList &publishedModels, const CAircraftModelList &skippedModels, const CStatusMessageList &msgs, bool success, bool directWrite)
|
||||
{
|
||||
ui->tvp_StashAircraftModels->hideLoadIndicator();
|
||||
if (!publishedModels.isEmpty())
|
||||
if (!publishedModels.isEmpty() && success)
|
||||
{
|
||||
emit this->modelsSuccessfullyPublished(publishedModels);
|
||||
emit this->modelsSuccessfullyPublished(publishedModels, directWrite);
|
||||
}
|
||||
|
||||
if (!msgs.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user