[haiku-commits] haiku: hrev48043 - src/kits/interface

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 18 Oct 2014 22:29:35 +0200 (CEST)

hrev48043 adds 1 changeset to branch 'master'
old head: 368dd377989a07862be20f87c23329734b2277d8
new head: 0eb5978482fde54db1789252243c4de907d0264c
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=0eb5978+%5E368dd37

----------------------------------------------------------------------------

0eb5978: BMenu: don't invalidate layout when changing marked item
  
  * The layout does not need to change. The label may change in
  SetLabelFromMarked mode, but this only affects the layout of the parent
  menu.
  * This would crash when programatically changing the menu marked item
  while the menu is open.

                                 [ Adrien Destugues <pulkomandy@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev48043
Commit:      0eb5978482fde54db1789252243c4de907d0264c
URL:         http://cgit.haiku-os.org/haiku/commit/?id=0eb5978
Author:      Adrien Destugues <pulkomandy@xxxxxxxxx>
Date:        Sat Oct 18 20:23:23 2014 UTC

----------------------------------------------------------------------------

1 file changed, 1 deletion(-)
src/kits/interface/Menu.cpp | 1 -

----------------------------------------------------------------------------

diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp
index 2288cef..8d59153 100644
--- a/src/kits/interface/Menu.cpp
+++ b/src/kits/interface/Menu.cpp
@@ -2592,7 +2592,6 @@ BMenu::_ItemMarked(BMenuItem* item)
                        if (ItemAt(i) != item)
                                ItemAt(i)->SetMarked(false);
                }
-               InvalidateLayout();
        }
 
        if (IsLabelFromMarked() && Superitem())


Other related posts:

  • » [haiku-commits] haiku: hrev48043 - src/kits/interface - pulkomandy