diff options
author | jkobus <jaroslaw.kobus@theqtcompany.com> | 2015-01-21 12:36:47 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2015-01-26 13:35:31 +0100 |
commit | c945bbd5b9af6641a91044eb81b842c6b292962c (patch) | |
tree | febb8934e19e0600028c984a01fc5c9203a63025 /src/libs/installer/selfrestartoperation.cpp | |
parent | 711c579ffa053acfe49879960bfb1b1b1b5f4c8b (diff) |
Introduce isMaintainer() method
Prepare for unification of updater and packageManager.
Change-Id: Iac9ac109ac5e6cf1309d5739ecee03bdfb1e2934
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/selfrestartoperation.cpp')
-rw-r--r-- | src/libs/installer/selfrestartoperation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/selfrestartoperation.cpp b/src/libs/installer/selfrestartoperation.cpp index 192e7ef67..dd14d5e64 100644 --- a/src/libs/installer/selfrestartoperation.cpp +++ b/src/libs/installer/selfrestartoperation.cpp @@ -58,7 +58,7 @@ bool SelfRestartOperation::performOperation() return false; } - if (!core->isUpdater() && !core->isPackageManager()) { + if (!core->isMaintainer()) { setError(UserDefinedError); setErrorString(tr("Self Restart: Only valid within updater or packagemanager mode.")); return false; |