VirtualBox

Changeset 102454 in vbox for trunk/src


Ignore:
Timestamp:
Dec 4, 2023 3:51:07 PM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160597
Message:

FE/Qt: ​bugref:9080, bugref:10141. Parse import-iso line while opening a VISO file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoContentBrowser.cpp

    r102446 r102454  
    856856    foreach (const QString &strPart, list)
    857857    {
     858        QStringList fileEntry;
     859#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
     860        fileEntry = strPart.split("=", Qt::SkipEmptyParts);
     861#else
     862        fileEntry = strPart.split("=", QString::SkipEmptyParts);
     863#endif
    858864        /* We currently do not support different on-ISO names for different namespaces. */
    859865        if (strPart.startsWith("/") && strPart.count('=') <= 1)
    860866        {
    861             QStringList fileEntry;
    862 #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
    863             fileEntry = strPart.split("=", Qt::SkipEmptyParts);
    864 #else
    865             fileEntry = strPart.split("=", QString::SkipEmptyParts);
    866 #endif
    867867            if (fileEntry.size() == 1)
    868868            {
     
    880880                else if (fileEntry[1] == cRemoveText)
    881881                    removedEntries.append(fileEntry[0]);
     882
     883            }
     884        }
     885        else
     886        {
     887            if(fileEntry.size() == 2 && fileEntry[0].contains("import-iso", Qt::CaseInsensitive))
     888            {
     889                if (QFileInfo(fileEntry[1]).exists())
     890                    importISOContentToViso(fileEntry[1]);
    882891            }
    883892        }
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