diff options
Diffstat (limited to 'src/libs/installer/componentchecker.cpp')
-rw-r--r-- | src/libs/installer/componentchecker.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/libs/installer/componentchecker.cpp b/src/libs/installer/componentchecker.cpp index 8dbcab42b..f95d856a8 100644 --- a/src/libs/installer/componentchecker.cpp +++ b/src/libs/installer/componentchecker.cpp @@ -50,6 +50,12 @@ QStringList ComponentChecker::checkComponent(Component *component) if (!core) return checkResult; + if (component->childCount() && !component->archives().isEmpty()) { + checkResult << QString::fromLatin1("Component %1 contains data to be installed " + "while having child components. This may not work properly.") + .arg(component->name()); + } + const bool defaultPropertyScriptValue = component->variables().value(scDefault).compare(scScript, Qt::CaseInsensitive) == 0; const bool defaultPropertyValue = component->variables().value(scDefault).compare(scTrue, Qt::CaseInsensitive) == 0; const QStringList autoDependencies = component->autoDependencies(); @@ -127,13 +133,13 @@ QStringList ComponentChecker::checkComponent(Component *component) Moreover, the "Next" button will be disabled. */ checkResult << QString::fromLatin1("Component %1 auto depends on other components " - "while having children components. This will not work properly.") + "while having child components. This will not work properly.") .arg(component->name()); } if (!component->dependencies().isEmpty()) { checkResult << QString::fromLatin1("Component %1 depends on other components " - "while having children components. This will not work properly.") + "while having child components. This will not work properly.") .arg(component->name()); } @@ -153,7 +159,7 @@ QStringList ComponentChecker::checkComponent(Component *component) Moreover, the "Next" button will be disabled. */ checkResult << QString::fromLatin1("Other components depend on component %1 " - "which has children components. This will not work properly.") + "which has child components. This will not work properly.") .arg(component->name()); } } |