Skip to content

Commit

Permalink
Clear menu stack on MenuManager::set_menu() to avoid accidentally sta…
Browse files Browse the repository at this point in the history
…cking menus
  • Loading branch information
Grumbel committed Aug 15, 2014
1 parent 1f40c31 commit d310216
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/menu_manager.cpp
Expand Up @@ -261,6 +261,7 @@ MenuManager::set_menu(std::unique_ptr<Menu> menu)
{
transition(m_menu_stack.empty() ? nullptr : m_menu_stack.back().get(),
menu.get());
m_menu_stack.clear();
m_menu_stack.push_back(std::move(menu));
}
else
Expand Down

0 comments on commit d310216

Please sign in to comment.