VirtualBox

Changeset 29031 in vbox


Ignore:
Timestamp:
May 4, 2010 2:40:21 PM (15 years ago)
Author:
vboxsync
Message:

Frontends/VirtualBox: fix enabling/disabling of the "take snapshot" button. Accidentally disabled it when there was no snapshot.

File:
1 edited

Legend:

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

    r28937 r29031  
    467467
    468468    /* Enable/disable taking snapshots */
    469     mTakeSnapshotAction->setEnabled (   canTakeDeleteSnapshot
    470                                      && mCurSnapshotItem && item && item->isCurrentStateItem());
     469    mTakeSnapshotAction->setEnabled (   (   canTakeDeleteSnapshot
     470                                         && mCurSnapshotItem && item && item->isCurrentStateItem())
     471                                     || (item && !mCurSnapshotItem));
    471472}
    472473
Note: See TracChangeset for help on using the changeset viewer.

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