summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2019-06-06 22:12:05 -0400
committerLukas Fleischer <lfleischer@calcurse.org>2019-06-06 22:38:46 -0400
commit4fb5eb4ce390e48ab79eb73304abb92e51185e4a (patch)
tree875e2d019d903f5cc6131de7975cd2b0c59b2afc
parentd659a8e2eec44bba08ec498912e5217b28c4409b (diff)
downloadcalcurse-4fb5eb4ce390e48ab79eb73304abb92e51185e4a.tar.gz
calcurse-4fb5eb4ce390e48ab79eb73304abb92e51185e4a.zip
Disable view item/note bindings for dummy items
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--src/calcurse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 389afa8..7eb6b12 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -105,7 +105,7 @@ static inline void key_generic_goto_today(void)
static inline void key_view_item(void)
{
- if (wins_slctd() == APP)
+ if (wins_slctd() == APP && !event_dummy(ui_day_get_sel()))
ui_day_popup_item();
else if (wins_slctd() == TOD)
ui_todo_popup_item();
@@ -252,7 +252,7 @@ static inline void key_edit_note(void)
static inline void key_view_note(void)
{
- if (wins_slctd() == APP)
+ if (wins_slctd() == APP && !event_dummy(ui_day_get_sel()))
ui_day_view_note();
else if (wins_slctd() == TOD)
ui_todo_view_note();