VirtualBox

Ignore:
Timestamp:
Oct 8, 2019 2:45:09 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133789
Message:

FE/Qt: bugref:6699. Some more fixes.

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

Legend:

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

    r78146 r81155  
    6464    if (doesPathStartWithDriveLetter(newPath))
    6565    {
    66         if (newPath.at(newPath.length() - 1) != delimiter)
     66        if (newPath.length() == 2)
     67        {
    6768            newPath += delimiter;
     69            return newPath;
     70        }
     71        if (newPath.at(2) != delimiter)
     72            newPath.insert(2, delimiter);
    6873        return newPath;
    6974    }
     
    7580/* static */ QString UIPathOperations::sanitize(const QString &path)
    7681{
    77     //return addStartDelimiter(removeTrailingDelimiters(removeMultipleDelimiters(path)));
    7882    QString newPath = addStartDelimiter(removeTrailingDelimiters(removeMultipleDelimiters(path))).replace(dosDelimiter, delimiter);
    7983    return newPath;
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp

    r81138 r81155  
    199199                QVector<QVariant> data;
    200200                QDateTime changeTime = QDateTime::fromMSecsSinceEpoch(fsInfo.GetChangeTime()/RT_NS_1MS);
    201 
    202201                KFsObjType fsObjectType = fileType(fsInfo);
    203202                UICustomFileSystemItem *item = new UICustomFileSystemItem(fsInfo.GetName(), parent, fsObjectType);
    204 
    205203                if (!item)
    206204                    continue;
    207 
    208205                item->setData(static_cast<qulonglong>(fsInfo.GetObjectSize()), UICustomFileSystemModelColumn_Size);
    209206                item->setData(changeTime, UICustomFileSystemModelColumn_ChangeTime);
     
    297294
    298295    m_comGuestSession.FsObjRename(item->path(), newPath, aFlags);
     296
    299297    if (!m_comGuestSession.isOk())
    300298    {
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