From a52559758ac9f6a77a0df091eac09bb6dabe3362 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Sun, 8 Sep 2024 17:01:18 +0200 Subject: [PATCH] Switch FOX_OTP option ON, and prevent a compilation error when it is switched of. --- CMakeLists.txt | 2 +- widgets/mainwindow.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7f5be719..ed31da3d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,7 +127,7 @@ option (WSJT_GENERATE_DOCS "Generate documentation files." ON) option (WSJT_RIG_NONE_CAN_SPLIT "Allow split operation with \"None\" as rig.") option (WSJT_TRACE_UDP "Debugging option that turns on UDP message protocol diagnostics.") option (WSJT_BUILD_UTILS "Build simulators and code demonstrators." ON) -option (WSJT_FOX_OTP "Enable Fox OTP Verification Messages." OFF) +option (WSJT_FOX_OTP "Enable Fox OTP Verification Messages." ON) CMAKE_DEPENDENT_OPTION (WSJT_QDEBUG_IN_RELEASE "Leave Qt debugging statements in Release configuration." OFF "NOT is_debug_build" OFF) CMAKE_DEPENDENT_OPTION (WSJT_ENABLE_EXPERIMENTAL_FEATURES "Enable features not fully ready for public releases." ON diff --git a/widgets/mainwindow.h b/widgets/mainwindow.h index 413287ea1..fd951e39a 100644 --- a/widgets/mainwindow.h +++ b/widgets/mainwindow.h @@ -897,7 +897,9 @@ private: QString userAgent(); void handleVerifyMsg(int status, QDateTime ts, QString callsign, QString code, unsigned int hz, QString const &response); void writeFoxTxMsgs(); +#ifdef FOX_OTP QString foxOTPcode(); +#endif }; extern int killbyname(const char* progName);