VirtualBox

Ignore:
Timestamp:
Jun 25, 2019 5:49:15 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131565
Message:

FE/Qt: bugref:7127: Delete medium stuff is superfluous VBOX_GUI_WITH_NEW_MEDIA_EVENTS defined, corresponding event goes through GUI anyway.

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

Legend:

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

    r79205 r79337  
    26222622}
    26232623
     2624#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    26242625void VBoxGlobal::deleteMedium(const QUuid &uMediumID)
    26252626{
     
    26322633    }
    26332634}
     2635#endif
    26342636
    26352637QUuid VBoxGlobal::openMedium(UIMediumDeviceType enmMediumType, QString strMediumLocation, QWidget *pParent /* = 0 */)
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r79205 r79337  
    494494        /** Creates medium on the basis of passed @a guiMedium description. */
    495495        void createMedium(const UIMedium &guiMedium);
     496#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    496497        /** Deletes medium with certain @a uMediumID. */
    497498        void deleteMedium(const QUuid &uMediumID);
     499#endif
    498500
    499501        /** Opens external medium by passed @a strMediumLocation.
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp

    r79234 r79337  
    166166}
    167167
     168#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    168169void UIMediumEnumerator::deleteMedium(const QUuid &uMediumID)
    169170{
     
    180181    emit sigMediumDeleted(uMediumID);
    181182}
     183#endif
    182184
    183185void UIMediumEnumerator::startMediumEnumeration(const CMediumVector &comMedia /* = CMediumVector() */)
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.h

    r79205 r79337  
    7777    /** Creates UIMedium thus caching it internally on the basis of passed @a guiMedium information. */
    7878    void createMedium(const UIMedium &guiMedium);
     79#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    7980    /** Deletes UIMedium with specified @a uMediumID thus removing it from internal cache. */
    8081    void deleteMedium(const QUuid &uMediumID);
     82#endif
    8183
    8284    /** Returns whether consolidated medium-enumeration process is in progress. */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumItem.cpp

    r78392 r79337  
    423423    /* Remember some of hard-disk attributes: */
    424424    CMedium hardDisk = medium().medium();
     425#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    425426    QUuid uMediumID = id();
     427#endif
    426428
    427429    /* Propose to remove medium storage: */
     
    437439    }
    438440
     441#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    439442    /* Remove UIMedium finally: */
    440443    vboxGlobal().deleteMedium(uMediumID);
     444#endif
    441445
    442446    /* True by default: */
     
    550554    /* Remember some of optical-disk attributes: */
    551555    CMedium image = medium().medium();
     556#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    552557    QUuid uMediumID = id();
     558#endif
    553559
    554560    /* Close optical-disk: */
     
    560566    }
    561567
     568#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    562569    /* Remove UIMedium finally: */
    563570    vboxGlobal().deleteMedium(uMediumID);
     571#endif
    564572
    565573    /* True by default: */
     
    621629    /* Remember some of floppy-disk attributes: */
    622630    CMedium image = medium().medium();
     631#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    623632    QUuid uMediumID = id();
     633#endif
    624634
    625635    /* Close floppy-disk: */
     
    631641    }
    632642
     643#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    633644    /* Remove UIMedium finally: */
    634645    vboxGlobal().deleteMedium(uMediumID);
     646#endif
    635647
    636648    /* True by default: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp

    r77291 r79337  
    112112
    113113    /* Remember virtual-disk attributes: */
     114#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    114115    QUuid uMediumID = m_virtualDisk.GetId();
     116#endif
    115117    QString strLocation = m_virtualDisk.GetLocation();
    116118    /* Prepare delete storage progress: */
     
    126128        msgCenter().cannotDeleteHardDiskStorage(m_virtualDisk, strLocation, thisImp());
    127129
     130#ifndef VBOX_GUI_WITH_NEW_MEDIA_EVENTS
    128131    /* Inform VBoxGlobal about it: */
    129132    vboxGlobal().deleteMedium(uMediumID);
     133#endif
    130134
    131135    /* Detach virtual-disk anyway: */
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