summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/registerfiletypeoperation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/installer/registerfiletypeoperation.cpp')
-rw-r--r--src/libs/installer/registerfiletypeoperation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/installer/registerfiletypeoperation.cpp b/src/libs/installer/registerfiletypeoperation.cpp
index e7f76be01..ebed21061 100644
--- a/src/libs/installer/registerfiletypeoperation.cpp
+++ b/src/libs/installer/registerfiletypeoperation.cpp
@@ -99,7 +99,7 @@ bool RegisterFileTypeOperation::performOperation()
}
bool allUsers = false;
- PackageManagerCore *const core = qVariantValue<PackageManagerCore *>(value(QLatin1String("installer")));
+ PackageManagerCore *const core = value(QLatin1String("installer")).value<PackageManagerCore*>();
if (core && core->value(QLatin1String("AllUsers")) == QLatin1String("true"))
allUsers = true;
@@ -163,7 +163,7 @@ bool RegisterFileTypeOperation::undoOperation()
}
bool allUsers = false;
- PackageManagerCore *const core = qVariantValue<PackageManagerCore *>(value(QLatin1String("installer")));
+ PackageManagerCore *const core = value(QLatin1String("installer")).value<PackageManagerCore*>();
if (core && core->value(QLatin1String("AllUsers")) == QLatin1String("true"))
allUsers = true;