Changeset 75932 in vbox
- Timestamp:
- Dec 4, 2018 12:02:00 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/guestctrl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileTable.h
r75903 r75932 52 52 class UIToolBar; 53 53 54 /** @todo r=bird: Why don't you just use KFsObjType? */ 54 55 enum FileObjectType 55 56 { -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestFileTable.cpp
r75928 r75932 423 423 return QString(); 424 424 425 CGuestFsObjInfo fileInfo = m_comGuestSession.FsObjQueryInfo(selectedObjects.at(0), true);425 CGuestFsObjInfo fileInfo = m_comGuestSession.FsObjQueryInfo(selectedObjects.at(0), false /*aFollowSymlinks*/); 426 426 if (!m_comGuestSession.isOk()) 427 427 { … … 453 453 /* Type: */ 454 454 QString str; 455 switch (fileInfo.GetType()) 455 KFsObjType const enmType = fileInfo.GetType(); 456 switch (enmType) 456 457 { 457 458 case KFsObjType_Directory: str = tr("directory"); break; … … 477 478 if (!str.isEmpty()) 478 479 { 479 int offSpace = str.indexOf( " ");480 int offSpace = str.indexOf(' '); 480 481 if (offSpace < 0) 481 482 offSpace = str.length(); 482 483 propertyStringList << UIGuestControlFileManager::tr("<b>Mode:</b> %1<br/>").arg(str.left(offSpace)); 483 propertyStringList << UIGuestControlFileManager::tr("<b>Attributes:</b> %1<br/>").arg(str. right(offSpace).trimmed());484 propertyStringList << UIGuestControlFileManager::tr("<b>Attributes:</b> %1<br/>").arg(str.mid(offSpace + 1).trimmed()); 484 485 } 485 486 486 487 /* Character/block device ID: */ 487 488 ULONG uDeviceNo = fileInfo.GetDeviceNumber(); 488 if (uDeviceNo != 0 )489 if (uDeviceNo != 0 || enmType == KFsObjType_DevChar || enmType == KFsObjType_DevBlock) 489 490 propertyStringList << UIGuestControlFileManager::tr("<b>Device ID:</b> %1<br/>").arg(uDeviceNo); /** @todo hex */ 490 491 491 492 /* Owner: */ 492 propertyStringList << UIGuestControlFileManager::tr("<b>Owner:</b> %1 (% 1)<br/>").493 propertyStringList << UIGuestControlFileManager::tr("<b>Owner:</b> %1 (%2)<br/>"). 493 494 arg(fileInfo.GetUserName()).arg(fileInfo.GetUID()); 494 propertyStringList << UIGuestControlFileManager::tr("<b>Group:</b> %1 <br/>").495 propertyStringList << UIGuestControlFileManager::tr("<b>Group:</b> %1 (%2)<br/>"). 495 496 arg(fileInfo.GetGroupName()).arg(fileInfo.GetGID()); 496 497
Note:
See TracChangeset
for help on using the changeset viewer.