summarylogtreecommitdiffstats
path: root/qtservice.patch
diff options
context:
space:
mode:
authorSkycoder422019-03-09 18:33:50 +0100
committerSkycoder422019-03-09 18:33:50 +0100
commit504f026cb03142197dc5aae1714da9f7ddd52390 (patch)
tree054f00925837adfcd51b7886b892e160adfa9587 /qtservice.patch
parentaa4378892d971048fb218373b75438860b3b728d (diff)
downloadaur-504f026cb03142197dc5aae1714da9f7ddd52390.tar.gz
Patched to work with qt5-service>=2.0.0
Diffstat (limited to 'qtservice.patch')
-rw-r--r--qtservice.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/qtservice.patch b/qtservice.patch
new file mode 100644
index 00000000000..3eecfec3a02
--- /dev/null
+++ b/qtservice.patch
@@ -0,0 +1,21 @@
+diff --git a/server/kptservice.cpp b/server/kptservice.cpp
+index 4cd5bb9..f959e6c 100644
+--- a/server/kptservice.cpp
++++ b/server/kptservice.cpp
+@@ -33,13 +33,13 @@ QtService::Service::CommandResult KPTService::onStart()
+ static_cast<quint16>(_settings->value(QStringLiteral("server/port"), 27352).toUInt()));
+ }
+ if(!ok)
+- return OperationFailed;
++ return CommandResult::Failed;
+
+- return OperationCompleted;
++ return CommandResult::Completed;
+ }
+
+ QtService::Service::CommandResult KPTService::onStop(int &exitCode)
+ {
+ exitCode = EXIT_SUCCESS;
+- return OperationCompleted;
++ return CommandResult::Completed;
+ }