From ea38dd48b9bbffe52e49f819c5c4a36124e23417 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 5 Jun 2008 22:07:56 -0500 Subject: [PATCH] Don't respond to Timeline keybindings when Timeline is inactive. --- Timeline/Timeline.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Timeline/Timeline.C b/Timeline/Timeline.C index 7cc7919..1168a37 100644 --- a/Timeline/Timeline.C +++ b/Timeline/Timeline.C @@ -175,6 +175,9 @@ Timeline::fix_range ( void ) void Timeline::menu_cb ( Fl_Menu_ *m ) { + if ( ! active_r() ) + return; + const char *picked = m->mvalue()->label(); /* m->item_pathname( picked, sizeof( picked ) ); */