From 370a9d474475d708f03795665d915f314f1665fa Mon Sep 17 00:00:00 2001 From: rathnor Date: Mon, 21 Jul 2003 02:45:27 +0000 Subject: fix little bug that highlighted items that went disabled after selected --- src/FbTk/Menu.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index ee7c231..f4e9340 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Menu.cc,v 1.31 2003/07/20 10:41:56 rathnor Exp $ +// $Id: Menu.cc,v 1.32 2003/07/21 02:45:27 rathnor Exp $ //use GNU extensions #ifndef _GNU_SOURCE @@ -542,7 +542,7 @@ void Menu::update(int active_index) { drawItem(i, true, true, false); drawSubmenu(i); } else - drawItem(i, (i == active_index), true, false); + drawItem(i, (i == active_index && isItemEnabled(i)), true, false); } if (m_parent && visible) -- cgit v0.11.2