From b7dbd2c72bdcc72c0e8686cf0c33ba74cc0f4cd5 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 12 Apr 2018 16:14:09 +0200 Subject: [PATCH] Fix build without libsyncthing --- widgets/misc/syncthinglauncher.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/widgets/misc/syncthinglauncher.cpp b/widgets/misc/syncthinglauncher.cpp index 00c0fd6..767d079 100644 --- a/widgets/misc/syncthinglauncher.cpp +++ b/widgets/misc/syncthinglauncher.cpp @@ -88,7 +88,11 @@ void SyncthingLauncher::handleProcessFinished(int exitCode, QProcess::ExitStatus void SyncthingLauncher::runLibSyncthing(const LibSyncthing::RuntimeOptions &runtimeOptions) { +#ifdef SYNCTHING_WIDGETS_USE_LIBSYNCTHING LibSyncthing::runSyncthing(runtimeOptions); +#else + VAR_UNUSED(runtimeOptions) +#endif } SyncthingLauncher &syncthingLauncher()