From 9e2518fa9bfaf204a775d9d3c51b9b2439010c4a Mon Sep 17 00:00:00 2001 From: Syping Date: Tue, 7 May 2024 17:39:45 +0200 Subject: [PATCH] change command line KeepAlive implementation --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 3b52d92..619be37 100644 --- a/main.cpp +++ b/main.cpp @@ -293,10 +293,10 @@ int main(int argc, char *argv[]) #endif commandLineParser.addOption(subprocessRemoteSocket); - QCommandLineOption processAutoStart("autostart", "SMSub autostart mode setting.", "autostart"); + QCommandLineOption processAutoStart("autostart", "SMSub autostart mode.", "autostart"); commandLineParser.addOption(processAutoStart); - QCommandLineOption processKeepAlive("keepalive", "SMSub keepalive mode setting.", "keepalive"); + QCommandLineOption processKeepAlive("keepalive", "SMSub keepalive mode.", "keepalive"); commandLineParser.addOption(processKeepAlive); QCommandLineOption processTimeout("timeout", "SMSub termination timeout.", "timeout"); @@ -384,7 +384,7 @@ int main(int argc, char *argv[]) if (commandLineParser.isSet(processKeepAlive)) { const QString claKeepAlive = commandLineParser.value(processKeepAlive); - if (claKeepAlive != "0" || claKeepAlive.toLower() != "false" || claKeepAlive.toLower() != "no") { + if (claKeepAlive == "1" || claKeepAlive.toLower() == "true" || claKeepAlive.toLower() == "yes") { keepAlive = true; } }