VirtualBox

Changeset 102798 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 9, 2024 3:01:53 PM (11 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Using the API to create a list of drive letters of a windows guest.

File:
1 edited

Legend:

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

    r102548 r102798  
    991991    if (m_comGuestSession.isNull())
    992992        return;
     993
    993994    KPathStyle pathStyle = m_comGuestSession.GetPathStyle();
    994995    if (pathStyle != KPathStyle_DOS)
     
    998999     *  so we enumarate them by using CGuestSession::DirectoryExists() */
    9991000    m_driveLetterList.clear();
     1001#if 0
    10001002    for (int i = 'A'; i <= 'Z'; ++i)
    10011003    {
     
    10061008            m_driveLetterList.push_back(path);
    10071009    }
     1010#endif
     1011
     1012    QVector<QString> mountPoints = m_comGuestSession.GetMountPoints();
     1013    foreach (const QString &strPoint, mountPoints)
     1014        m_driveLetterList.push_back(UIPathOperations::replaceDosDelimeter(strPoint));
    10081015}
    10091016
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