VirtualBox

Changeset 56338 in vbox for trunk


Ignore:
Timestamp:
Jun 10, 2015 12:54:17 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Extra-data management: GUI_RecentList flag should be filtered out of non-unique values.

File:
1 edited

Legend:

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

    r56180 r56338  
    18321832    /* Get recent-medium list: */
    18331833    QStringList recentMediumList;
     1834    QStringList recentMediumListUsed;
    18341835    switch (mediumType)
    18351836    {
     
    18421843    foreach (const QString &strRecentMediumLocationBase, recentMediumList)
    18431844    {
     1845        /* Confirm medium uniqueness: */
     1846        if (recentMediumListUsed.contains(strRecentMediumLocationBase))
     1847            continue;
     1848        /* Mark medium as known: */
     1849        recentMediumListUsed << strRecentMediumLocationBase;
    18441850        /* Convert separators to native: */
    18451851        const QString strRecentMediumLocation = QDir::toNativeSeparators(strRecentMediumLocationBase);
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