From a8bd0ab7bf44d3a39590bdf3aa99f2ce0328f773 Mon Sep 17 00:00:00 2001 From: Zii Date: Mon, 31 Jul 2023 16:44:25 -0400 Subject: [PATCH] fixed compile error for older QT versions --- src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b7303ba..56ff239 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -61,8 +61,11 @@ int main(int argc, char** argv) listServices(); } else if (args.contains("-i")) - { - args = {"-d", "/etc/" + QString(APP_BIN)}; + { + args.clear(); + args.append("-d"); + args.append("/etc/"); + args.append(APP_BIN); rmServices(); ret = loadServices(args); }