VirtualBox

Changeset 77050 in vbox


Ignore:
Timestamp:
Jan 30, 2019 5:29:13 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128495
Message:

FE/Qt: Guest Control file manager: Guarantee that UICustomFileSystemItem::path() always returns a path without a trailing delimiter. This is needed in order to make copying directories work as intended.

File:
1 edited

Legend:

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

    r76750 r77050  
    186186}
    187187
    188 QString  UICustomFileSystemItem::path() const
    189 {
    190     return m_itemData.value(UICustomFileSystemModelColumn_Path, QString()).toString();
     188QString UICustomFileSystemItem::path() const
     189{
     190    return UIPathOperations::removeTrailingDelimiters(m_itemData.value(UICustomFileSystemModelColumn_Path, QString()).toString());
    191191}
    192192
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