Copy menu title in CONTEXT_MENU::copyFrom()

This commit is contained in:
Maciej Suminski 2017-01-25 20:29:27 +01:00
parent 0f5bfdb156
commit 8f82f04153
1 changed files with 1 additions and 0 deletions

View File

@ -355,6 +355,7 @@ void CONTEXT_MENU::runOnSubmenus( std::function<void(CONTEXT_MENU*)> aFunction )
void CONTEXT_MENU::copyFrom( const CONTEXT_MENU& aMenu ) void CONTEXT_MENU::copyFrom( const CONTEXT_MENU& aMenu )
{ {
SetTitle( aMenu.GetTitle() );
m_icon = aMenu.m_icon; m_icon = aMenu.m_icon;
m_titleDisplayed = aMenu.m_titleDisplayed; m_titleDisplayed = aMenu.m_titleDisplayed;
m_selected = -1; // aMenu.m_selected; m_selected = -1; // aMenu.m_selected;