diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 96f66eeb50..4eda866d27 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -886,10 +886,12 @@ long gui_wps_show(void) #endif switch(button) { +#ifdef HAVE_HOTKEY case ACTION_WPS_HOTKEY: if (!global_settings.hotkey_wps) break; /* fall through */ +#endif case ACTION_WPS_CONTEXT: { bool hotkey = button == ACTION_WPS_HOTKEY; diff --git a/apps/tree.c b/apps/tree.c index dde4b57b8a..97ddfbb44d 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -755,10 +755,12 @@ static int dirbrowse() break; #endif +#ifdef HAVE_HOTKEY case ACTION_TREE_HOTKEY: if (!global_settings.hotkey_tree) break; /* fall through */ +#endif case ACTION_STD_CONTEXT: { bool hotkey = button == ACTION_TREE_HOTKEY;