VirtualBox

Ignore:
Timestamp:
Dec 13, 2010 9:29:24 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68805
Message:

FE/Qt: 5391: Do not offer to delete a medium (while trying to remove it using VMM) if medium is not file-based.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r34791 r34982  
    10641064             * will give a corresponding hint. Therefore, once the code is
    10651065             * changed below, the hint should be re-checked for validity. */
    1066             if (item->state() != KMediumState_Inaccessible)
     1066            if (item->state() != KMediumState_Inaccessible &&
     1067                item->medium().medium().GetMediumFormat().GetCapabilities() & MediumFormatCapabilities_File)
    10671068            {
    10681069                int rc = vboxProblem().
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.cpp

    r34978 r34982  
    11161116            .arg (aMedium.location());
    11171117
    1118     if (aMedium.type() == VBoxDefs::MediumType_HardDisk)
     1118    if (aMedium.type() == VBoxDefs::MediumType_HardDisk &&
     1119        aMedium.medium().GetMediumFormat().GetCapabilities() & MediumFormatCapabilities_File)
    11191120    {
    11201121        if (aMedium.state() == KMediumState_Inaccessible)
     
    11311132        msg +=
    11321133            tr ("<p>Note that the storage unit of this medium will not be "
    1133                 "deleted and that it will be possible to add it to "
    1134                 "the list later again.</p>");
     1134                "deleted and that it will be possible to use it later again.</p>");
    11351135
    11361136    return messageOkCancel (aParent, Question, msg,
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