Fix crash when switching menus in menubar
This commit is contained in:
parent
b2f3625eaa
commit
4febbec102
2 changed files with 18 additions and 8 deletions
|
@ -55,6 +55,9 @@ class MenuDelegate : public views::MenuDelegate {
|
|||
std::unique_ptr<views::MenuDelegate> adapter_;
|
||||
std::unique_ptr<views::MenuRunner> menu_runner_;
|
||||
|
||||
// The menu button to switch to.
|
||||
views::MenuButton* button_to_open_ = nullptr;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(MenuDelegate);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue