summaryrefslogtreecommitdiffstats
path: root/src/hidsrvwizard.ui.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-01-14 02:37:59 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-01-15 15:15:43 +0100
commitab700191fa487a238d9cd03c81c9e1ef7124548f (patch)
treec1d1e65ad31314bbe1aa782b2b699a52ca5c0cde /src/hidsrvwizard.ui.h
parentfbb5b1424b098b844b4f744cdeea97ba5279764f (diff)
downloadtork-ab700191.tar.gz
tork-ab700191.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 355f00c2bd6f4b2870133d0423420ef8046b7156)
Diffstat (limited to 'src/hidsrvwizard.ui.h')
-rw-r--r--src/hidsrvwizard.ui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hidsrvwizard.ui.h b/src/hidsrvwizard.ui.h
index a9ab197..47d4ef0 100644
--- a/src/hidsrvwizard.ui.h
+++ b/src/hidsrvwizard.ui.h
@@ -58,8 +58,8 @@ void HidSrvWizard::localWeb_toggled( bool state)
if (state){
const char *paths = ":/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin";
thttpd = getFullLocation(paths,"thttpd");
-
- if (thttpd)
+
+ if (!thttpd.isEmpty())
setAppropriate ( LocalWebService, !state );
else
setAppropriate ( LocalWebService, state );