VirtualBox

Changeset 42854 in vbox for trunk/src


Ignore:
Timestamp:
Aug 16, 2012 6:36:24 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80117
Message:

FE/Qt: 6234: Support for VM groups: Disable snapshots-view if group or more than one machine is selected.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector
Files:
3 edited

Legend:

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

    r42853 r42854  
    831831            m_pDetails->setItems(currentItems());
    832832        if (fRefreshSnapshots)
     833        {
    833834            m_pVMDesktop->updateSnapshots(pItem, pItem->machine());
     835            /* Always hide snapshots-view if
     836             * single group or more than one machine is selected: */
     837            if (currentItems().size() > 1 || m_pChooser->singleGroupSelected())
     838                m_pVMDesktop->lockSnapshots();
     839        }
    834840    }
    835841    /* If currently selected VM item is NOT accessible: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.cpp

    r42526 r42854  
    20592059        m_pHeaderBtn->setEnabled(Snap, true);
    20602060        m_pSnapshotsPage->setMachine(machine);
    2061     } else
    2062     {
    2063         m_pHeaderBtn->animateClick(Dtls);
    2064         m_pHeaderBtn->setEnabled(Snap, false);
    2065     }
     2061    }
     2062    else
     2063        lockSnapshots();
     2064}
     2065
     2066void UIVMDesktop::lockSnapshots()
     2067{
     2068    m_pHeaderBtn->animateClick(Dtls);
     2069    m_pHeaderBtn->setEnabled(Snap, false);
    20662070}
    20672071
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.h

    r42526 r42854  
    5454
    5555    void updateSnapshots(UIVMItem *pVMItem, const CMachine& machine);
     56    void lockSnapshots();
    5657//    void updateDescription(UIVMItem *pVMItem, const CMachine& machine);
    5758//    void updateDescriptionState();
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