mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Minor tweaks (found during T125)
* formatting/typos * authentication: private slots => private
This commit is contained in:
committed by
Mathew Sutcliffe
parent
ca651877cd
commit
0bbad2ff83
@@ -239,8 +239,8 @@ namespace BlackCore
|
||||
CAircraftModelList stashModels;
|
||||
if (dbFsFamilyModels.isEmpty() || ownModels.isEmpty()) { return stashModels; }
|
||||
const QSet<QString> dbKeys = dbFsFamilyModels.getModelStringSet();
|
||||
const int mexModelsCount = maxToStash >= 0 ? maxToStash : ownModels.size();
|
||||
if (mexModelsCount < 1) { return stashModels; }
|
||||
const int maxModelsCount = maxToStash >= 0 ? maxToStash : ownModels.size();
|
||||
if (maxModelsCount < 1) { return stashModels; }
|
||||
|
||||
int c = 0; // counter
|
||||
for (const CAircraftModel &ownModel : ownModels)
|
||||
@@ -252,7 +252,7 @@ namespace BlackCore
|
||||
{
|
||||
if (progressIndicator)
|
||||
{
|
||||
const int percentage = c * 100 / mexModelsCount;
|
||||
const int percentage = c * 100 / maxModelsCount;
|
||||
progressIndicator->updateProgressIndicatorAndProcessEvents(percentage);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user