summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/registerfiletypeoperation.cpp
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@theqtcompany.com>2015-05-06 23:28:42 +0200
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2015-05-08 08:33:22 +0000
commitd74b5e575dfbc3d39f5a2970cc698cc389542116 (patch)
treed9373cfc746d31e54925bb209cc6720f8fad1116 /src/libs/installer/registerfiletypeoperation.cpp
parentf0b20942b879adb1e42a741843db9871cc614582 (diff)
Add constant and make use of it.
Change-Id: I3d244f112e39a57dfa769bb6a786f62b607d9b3c Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com> Reviewed-by: Christoph VogtlÃĪnder <c.vogtlaender@sigma-surface-science.com>
Diffstat (limited to 'src/libs/installer/registerfiletypeoperation.cpp')
-rw-r--r--src/libs/installer/registerfiletypeoperation.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/installer/registerfiletypeoperation.cpp b/src/libs/installer/registerfiletypeoperation.cpp
index 0f74330f1..4a83f4b21 100644
--- a/src/libs/installer/registerfiletypeoperation.cpp
+++ b/src/libs/installer/registerfiletypeoperation.cpp
@@ -34,6 +34,7 @@
#include "registerfiletypeoperation.h"
+#include "constants.h"
#include "packagemanagercore.h"
#include "qsettingswrapper.h"
@@ -103,7 +104,7 @@ bool RegisterFileTypeOperation::performOperation()
bool allUsers = false;
PackageManagerCore *const core = value(QLatin1String("installer")).value<PackageManagerCore*>();
- if (core && core->value(QLatin1String("AllUsers")) == QLatin1String("true"))
+ if (core && core->value(scAllUsers) == scTrue)
allUsers = true;
QSettingsWrapper settings(QLatin1String(allUsers ? "HKEY_LOCAL_MACHINE" : "HKEY_CURRENT_USER")
@@ -167,7 +168,7 @@ bool RegisterFileTypeOperation::undoOperation()
bool allUsers = false;
PackageManagerCore *const core = value(QLatin1String("installer")).value<PackageManagerCore*>();
- if (core && core->value(QLatin1String("AllUsers")) == QLatin1String("true"))
+ if (core && core->value(scAllUsers) == scTrue)
allUsers = true;
QSettingsWrapper settings(QLatin1String(allUsers ? "HKEY_LOCAL_MACHINE" : "HKEY_CURRENT_USER")