Changeset 75191 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 30, 2018 4:54:34 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r75185 r75191 2354 2354 void UIActionPool::updateMenu(int iIndex) 2355 2355 { 2356 /* Update if menu with such index is invalidated and there is update-handler: */ 2357 if (m_invalidations.contains(iIndex) && m_menuUpdateHandlers.contains(iIndex)) 2356 /* Make sure index belongs to this class: */ 2357 AssertReturnVoid(iIndex < UIActionIndex_Max); 2358 2359 /* If menu with such index is invalidated 2360 * and there is update-handler => handle it here: */ 2361 if ( m_invalidations.contains(iIndex) 2362 && m_menuUpdateHandlers.contains(iIndex)) 2358 2363 (this->*(m_menuUpdateHandlers.value(iIndex).ptf))(); 2359 2364 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp
r75087 r75191 3506 3506 void UIActionPoolRuntime::updateMenu(int iIndex) 3507 3507 { 3508 /* Callto base-class: */3508 /* If index belongs to base-class => delegate to base-class: */ 3509 3509 if (iIndex < UIActionIndex_Max) 3510 3510 UIActionPool::updateMenu(iIndex); 3511 3512 /* If menu with such index is invalidated and there is update-handler: */ 3513 if (m_invalidations.contains(iIndex) && m_menuUpdateHandlers.contains(iIndex)) 3514 (this->*(m_menuUpdateHandlers.value(iIndex).ptfr))(); 3511 /* Otherwise, 3512 * if menu with such index is invalidated 3513 * and there is update-handler => handle it here: */ 3514 else if ( iIndex > UIActionIndex_Max 3515 && m_invalidations.contains(iIndex) 3516 && m_menuUpdateHandlers.contains(iIndex)) 3517 (this->*(m_menuUpdateHandlers.value(iIndex).ptfr))(); 3515 3518 } 3516 3519
Note:
See TracChangeset
for help on using the changeset viewer.