VirtualBox

Changeset 76883 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 18, 2019 10:31:08 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9080: Dont put the ac-hoc.viso to recent media extra data

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

Legend:

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

    r76835 r76883  
    31243124void VBoxGlobal::updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType enmMediumType, QString strMediumLocation)
    31253125{
    3126        /* Remember the path of the last chosen medium: */
     3126    /** Don't add the medium to extra data if its name is in exclude list, m_recentMediaExcludeList: */
     3127    foreach (QString strExcludeName, m_recentMediaExcludeList)
     3128    {
     3129        if (strMediumLocation.contains(strExcludeName))
     3130            return;
     3131    }
     3132
     3133    /* Remember the path of the last chosen medium: */
    31273134    switch (enmMediumType)
    31283135    {
     
    42124219    checkForWrongUSBMounted();
    42134220#endif /* RT_OS_LINUX */
     4221
     4222    /* Populate the list of medium names to be excluded from the
     4223       recently used media extra data: */
     4224    m_recentMediaExcludeList << "ad-hoc.viso";
    42144225}
    42154226
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r76835 r76883  
    871871        /** Holds the medium enumerator. */
    872872        UIMediumEnumerator *m_pMediumEnumerator;
     873        /** List of medium names that should not appears in the recently used media extra data. */
     874        QStringList         m_recentMediaExcludeList;
    873875    /** @} */
    874876
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