fix little bug that highlighted items that went disabled after selected
rathnor rathnor
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/FbTk/Menu.cc
→
src/FbTk/Menu.cc
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ if (i == (unsigned int)which_sub) {
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)