refs #614, renamed function and helper function

This commit is contained in:
Klaus Basan
2016-04-05 16:18:51 +02:00
parent b567e2e57b
commit 1b0dda74a3
5 changed files with 12 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ namespace BlackGui
CStatusMessage CDbStashComponent::validateStashModel(const CAircraftModel &model, bool allowReplace) const
{
if (!allowReplace && this->ui->tvp_StashAircraftModels->container().containsModelStringOrId(model))
if (!allowReplace && this->ui->tvp_StashAircraftModels->container().containsModelStringOrDbKey(model))
{
const QString msg("Model \"%1\" already stashed");
return CStatusMessage(validationCategories(), CStatusMessage::SeverityError, msg.arg(model.getModelString()));