VirtualBox

Ignore:
Timestamp:
May 26, 2017 9:07:14 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115772
Message:

FE/Qt: Selector UI: Tools pane: Mark actions checked when corresponding pane is opened and unchecked otherwise.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIToolsPane.cpp

    r67092 r67108  
    135135    m_pStackedLayout->removeWidget(pWidget);
    136136    delete pWidget;
     137
     138    /* Make sure action is unchecked: */
     139    m_actions[enmType]->blockSignals(true);
     140    m_actions[enmType]->setChecked(false);
     141    m_actions[enmType]->blockSignals(false);
    137142}
    138143
     
    251256                                                                  QString(), this, &UIToolsPane::sltHandleMenuToolbarTrigger);
    252257        {
     258            m_actions[ToolsType_SnapshotManager]->setCheckable(true);
    253259            m_actions[ToolsType_SnapshotManager]->
    254260                setProperty("ToolsType", QVariant::fromValue(ToolsType_SnapshotManager));
     
    260266                                                                      QString(), this, &UIToolsPane::sltHandleMenuToolbarTrigger);
    261267        {
     268            m_actions[ToolsType_VirtualMediaManager]->setCheckable(true);
    262269            m_actions[ToolsType_VirtualMediaManager]->
    263270                setProperty("ToolsType", QVariant::fromValue(ToolsType_VirtualMediaManager));
     
    269276                                                                     QString(), this, &UIToolsPane::sltHandleMenuToolbarTrigger);
    270277        {
     278            m_actions[ToolsType_HostNetworkManager]->setCheckable(true);
    271279            m_actions[ToolsType_HostNetworkManager]->
    272280                setProperty("ToolsType", QVariant::fromValue(ToolsType_HostNetworkManager));
     
    358366    m_pTabBar->setCurrentIndex(iActualTabIndex);
    359367    m_pTabBar->blockSignals(false);
    360 }
    361 
     368
     369    /* Make sure action is checked: */
     370    m_actions[enmType]->blockSignals(true);
     371    m_actions[enmType]->setChecked(true);
     372    m_actions[enmType]->blockSignals(false);
     373}
     374
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette