diff options
author | kh1 <karsten.heimrich@theqtcompany.com> | 2015-04-17 09:24:12 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-04-27 10:55:37 +0000 |
commit | 32221180df76fa79b09e6acb7c9263c15b279f44 (patch) | |
tree | 173215aa6c63ea9a262c35f16c4fecbee7c1c029 /src/libs | |
parent | 55eb4ba17e8729cf47449ff1f4f06ca93b837f9e (diff) |
Fix dubious warning about RequiresAdminRights tag.
The tag was added once component script is parsed and we did
know that addElevatedOperation is called from script. However,
the initial commit 7ccd0acdcf35b957e9e7d04cd81902bac362ad04 did
not append the node to the parent package update node. Now we
decided to have the option statically and declarative available,
so we can remove the warning.
Task-number: QTIFW-670
Change-Id: I8cd8f702391d7bf80fc4c42074e1fd6d2d4abc57
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/installer/component.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp index 393dcd99a..e2a9cf2e1 100644 --- a/src/libs/installer/component.cpp +++ b/src/libs/installer/component.cpp @@ -940,11 +940,6 @@ void Component::addOperation(Operation *operation) */ void Component::addElevatedOperation(Operation *operation) { - if (value(scRequiresAdminRights, scFalse) != scTrue) { - qWarning() << QString::fromLatin1("Component %1 uses addElevatedOperation in the script, " - "but it does not have the needed RequiresAdminRights tag" - ).arg(name()); - } addOperation(operation); operation->setValue(QLatin1String("admin"), true); } |