VirtualBox

Changeset 75931 in vbox


Ignore:
Timestamp:
Dec 3, 2018 11:27:55 PM (6 years ago)
Author:
vboxsync
Message:

Fe/QT: QIfleInfo::fileName() includes the suffix already, so no need to append it again.

File:
1 edited

Legend:

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

    r75903 r75931  
    228228        /* if the item is a symlink set the target path and
    229229           check the target if it is a directory: */
    230         if (fileInfo.isSymLink())
     230        if (fileInfo.isSymLink()) /** @todo No symlinks here on windows, while fsObjectPropertyString() does see them.  RTDirReadEx works wrt symlinks, btw. */
    231231        {
    232232            item->setTargetPath(fileInfo.symLinkTarget());
     
    360360        QStringList propertyStringList;
    361361        /* Name: */
    362         propertyStringList << UIGuestControlFileManager::tr("<b>Name:</b> %1").arg(fileInfo.fileName());
    363         if (!fileInfo.suffix().isEmpty())
    364             propertyStringList << QString(".%1").arg(fileInfo.suffix());
    365         propertyStringList << "<br/>";
     362        propertyStringList << UIGuestControlFileManager::tr("<b>Name:</b> %1<br/>").arg(fileInfo.fileName());
    366363        /* Size: */
    367364        propertyStringList << UIGuestControlFileManager::tr("<b>Size:</b> %1 bytes").arg(QString::number(fileInfo.size()));
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