Changeset 81155 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 8, 2019 2:45:09 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133789
- 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 64 64 if (doesPathStartWithDriveLetter(newPath)) 65 65 { 66 if (newPath.at(newPath.length() - 1) != delimiter) 66 if (newPath.length() == 2) 67 { 67 68 newPath += delimiter; 69 return newPath; 70 } 71 if (newPath.at(2) != delimiter) 72 newPath.insert(2, delimiter); 68 73 return newPath; 69 74 } … … 75 80 /* static */ QString UIPathOperations::sanitize(const QString &path) 76 81 { 77 //return addStartDelimiter(removeTrailingDelimiters(removeMultipleDelimiters(path)));78 82 QString newPath = addStartDelimiter(removeTrailingDelimiters(removeMultipleDelimiters(path))).replace(dosDelimiter, delimiter); 79 83 return newPath; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r81138 r81155 199 199 QVector<QVariant> data; 200 200 QDateTime changeTime = QDateTime::fromMSecsSinceEpoch(fsInfo.GetChangeTime()/RT_NS_1MS); 201 202 201 KFsObjType fsObjectType = fileType(fsInfo); 203 202 UICustomFileSystemItem *item = new UICustomFileSystemItem(fsInfo.GetName(), parent, fsObjectType); 204 205 203 if (!item) 206 204 continue; 207 208 205 item->setData(static_cast<qulonglong>(fsInfo.GetObjectSize()), UICustomFileSystemModelColumn_Size); 209 206 item->setData(changeTime, UICustomFileSystemModelColumn_ChangeTime); … … 297 294 298 295 m_comGuestSession.FsObjRename(item->path(), newPath, aFlags); 296 299 297 if (!m_comGuestSession.isOk()) 300 298 {
Note:
See TracChangeset
for help on using the changeset viewer.