VirtualBox

Changeset 102441 in vbox


Ignore:
Timestamp:
Dec 3, 2023 1:32:39 PM (12 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10561. Some fixes on the host file table for Windows.

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

Legend:

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

    r102418 r102441  
    161161{
    162162
    163     QDir directory(strPath);
     163    QDir directory(UIPathOperations::addTrailingDelimiters(strPath));
    164164    /* For some reason when this filter is applied, folder content  QDir::entryInfoList()
    165165       returns an empty list: */
     
    174174    {
    175175        const QFileInfo &fileInfo = entries.at(i);
    176 
    177176        UICustomFileSystemItem *item = new UICustomFileSystemItem(fileInfo.fileName(), parent, fileType(fileInfo));
    178177        if (!item)
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerTable.cpp

    r102418 r102441  
    13551355    if (m_pModel)
    13561356        m_pModel->setIsWindowsFileSystem(fIsWindowsFileSystem);
     1357    /* On Windows it is generally desired to sort file objects case insensitively: */
     1358    if (m_pProxyModel)
     1359    {
     1360        if (fIsWindowsFileSystem)
     1361            m_pProxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
     1362        else
     1363            m_pProxyModel->setSortCaseSensitivity(Qt::CaseSensitive);
     1364    }
    13571365}
    13581366
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