VirtualBox

Ignore:
Timestamp:
Jul 12, 2011 11:53:16 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72792
Message:

FE/Qt: Virtual Media Manager bug fix: Disable 'copy' action for other device types except hard-disks.

File:
1 edited

Legend:

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

    r37874 r37891  
    14171417    bool newEnabled     = currentTreeWidgetType() == VBoxDefs::MediumType_HardDisk;
    14181418    bool addEnabled     = true;
    1419     bool copyEnabled    = notInEnum && item && checkMediumFor (item, Action_Copy);
     1419    bool copyEnabled    = currentTreeWidgetType() == VBoxDefs::MediumType_HardDisk &&
     1420                          notInEnum && item && checkMediumFor (item, Action_Copy);
    14201421    bool removeEnabled  = notInEnum && item && checkMediumFor (item, Action_Remove);
    14211422    bool releaseEnabled = item && checkMediumFor (item, Action_Release);
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