]> Dogcows Code - chaz/openbox/commitdiff
only execute enabled items
authorDana Jansens <danakj@orodu.net>
Thu, 28 Aug 2003 18:34:06 +0000 (18:34 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 28 Aug 2003 18:34:06 +0000 (18:34 +0000)
openbox/menuframe.c

index efafe30b3da4b7280788bb4b3c9dcfdeda7a3b0a..56dbc647c48b1702f6f1f8eb1a331780fa56b0c1 100644 (file)
@@ -571,7 +571,9 @@ void menu_entry_frame_show_submenu(ObMenuEntryFrame *self)
 
 void menu_entry_frame_execute(ObMenuEntryFrame *self, gboolean hide)
 {
-    if (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) {
+    if (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL &&
+        self->entry->data.normal.enabled)
+    {
         /* grab all this shizzle, cuz when the menu gets hidden, 'self'
            gets freed */
         ObMenuEntry *entry = self->entry;
This page took 0.024206 seconds and 4 git commands to generate.