VirtualBox

Changeset 102404 in vbox for trunk/src


Ignore:
Timestamp:
Nov 30, 2023 4:15:09 PM (14 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10561. Some more fixes mainly for VISO creator.

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

Legend:

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

    r102393 r102404  
    225225            strPath.remove(0, 1);
    226226    }
    227     return UIPathOperations::addTrailingDelimiters(strPath);
     227    return UIPathOperations::removeTrailingDelimiters(strPath);
    228228}
    229229
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp

    r102393 r102404  
    686686        return;
    687687    QVector<QString> sourcePaths = hostSourcePathList.toVector();
     688    /* Remove empty source paths. Typically happens when up directory is selected: */
     689    sourcePaths.removeAll(QString());
     690
    688691    QVector<QString> aFilters;
    689692    QVector<QString> aFlags;
    690693    QString strDestinationPath = UIPathOperations::addTrailingDelimiters(strDestination);
    691 
    692     /* Remove empty source paths. Typically happens when up directory is selected: */
    693     sourcePaths.removeAll(QString());
    694 
    695694    if (strDestinationPath.isEmpty())
    696         strDestinationPath = currentDirectoryPath();
     695        strDestinationPath = UIPathOperations::addTrailingDelimiters(currentDirectoryPath());
    697696
    698697    if (strDestinationPath.isEmpty())
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r102400 r102404  
    343343}
    344344
    345 void UIVisoCreatorWidget::sltAddObjectsToViso(QStringList pathList)
    346 {
    347     if (m_pVISOContentBrowser)
    348         m_pVISOContentBrowser->addObjectsToViso(pathList);
     345void UIVisoCreatorWidget::sltAddObjectsToViso()
     346{
     347    AssertPtrReturnVoid(m_pHostFileBrowser);
     348    AssertPtrReturnVoid(m_pVISOContentBrowser);
     349    m_pVISOContentBrowser->addObjectsToViso(m_pHostFileBrowser->selectedItemPathList());
    349350}
    350351
     
    541542    }
    542543
    543     // if (m_pAddAction)
    544     //     connect(m_pAddAction, &QAction::triggered,
    545     //             m_pHostBrowser, &UIVisoHostBrowser::sltAddAction);
     544    if (m_pAddAction)
     545        connect(m_pAddAction, &QAction::triggered,
     546                this, &UIVisoCreatorWidget::sltAddObjectsToViso);
    546547    if (m_pOpenAction)
    547548        connect(m_pOpenAction, &QAction::triggered,
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h

    r102400 r102404  
    109109private slots:
    110110
    111     void sltAddObjectsToViso(QStringList pathList);
     111    void sltAddObjectsToViso();
    112112    void sltSettingsActionToggled(bool fChecked);
    113113    void sltHostBrowserTableSelectionChanged(bool fHasSelection);
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