Skip to content

Commit

Permalink
don't constantly show/hide the same submenu while dragging torn off m…
Browse files Browse the repository at this point in the history
…enus
  • Loading branch information
bradleyhughes committed May 3, 2002
1 parent 05533a0 commit 3fe079a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Basemenu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ void Basemenu::redrawTitle(void) {

void Basemenu::drawSubmenu(int index) {
BasemenuItem *item = find(which_sub);
if (item && item->submenu() && ! item->submenu()->isTorn())
if (item && item->submenu() && ! item->submenu()->isTorn() &&
which_sub != index)
item->submenu()->internal_hide();

item = find(index);
Expand Down

0 comments on commit 3fe079a

Please sign in to comment.