From 355f00c2bd6f4b2870133d0423420ef8046b7156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 14 Jan 2021 02:37:59 +0100 Subject: Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/hidsrvwizard.ui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hidsrvwizard.ui.h') 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 ); -- cgit v1.2.1