From ee2ef051784de4b64c601b631254227a9b709e91 Mon Sep 17 00:00:00 2001 From: Boyuan Yang Date: Sat, 20 Feb 2021 08:01:01 -0500 Subject: [PATCH] Do not include QHotKey header on non-Mac system QHotKey is only used on macOS. As a result, do not unconditionally include QHotKey headers. --- src/core/controller.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/controller.cpp b/src/core/controller.cpp index 9ca21c41..93199643 100644 --- a/src/core/controller.cpp +++ b/src/core/controller.cpp @@ -16,7 +16,11 @@ // along with Flameshot. If not, see . #include "controller.h" + +#if defined(Q_OS_MACOS) #include "external/QHotkey/QHotkey" +#endif + #include "src/config/configwindow.h" #include "src/core/qguiappcurrentscreen.h" #include "src/utils/confighandler.h"