- Timestamp:
- Nov 30, 2023 4:15:09 PM (14 months ago)
- 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 225 225 strPath.remove(0, 1); 226 226 } 227 return UIPathOperations:: addTrailingDelimiters(strPath);227 return UIPathOperations::removeTrailingDelimiters(strPath); 228 228 } 229 229 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r102393 r102404 686 686 return; 687 687 QVector<QString> sourcePaths = hostSourcePathList.toVector(); 688 /* Remove empty source paths. Typically happens when up directory is selected: */ 689 sourcePaths.removeAll(QString()); 690 688 691 QVector<QString> aFilters; 689 692 QVector<QString> aFlags; 690 693 QString strDestinationPath = UIPathOperations::addTrailingDelimiters(strDestination); 691 692 /* Remove empty source paths. Typically happens when up directory is selected: */693 sourcePaths.removeAll(QString());694 695 694 if (strDestinationPath.isEmpty()) 696 strDestinationPath = currentDirectoryPath();695 strDestinationPath = UIPathOperations::addTrailingDelimiters(currentDirectoryPath()); 697 696 698 697 if (strDestinationPath.isEmpty()) -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r102400 r102404 343 343 } 344 344 345 void UIVisoCreatorWidget::sltAddObjectsToViso(QStringList pathList) 346 { 347 if (m_pVISOContentBrowser) 348 m_pVISOContentBrowser->addObjectsToViso(pathList); 345 void UIVisoCreatorWidget::sltAddObjectsToViso() 346 { 347 AssertPtrReturnVoid(m_pHostFileBrowser); 348 AssertPtrReturnVoid(m_pVISOContentBrowser); 349 m_pVISOContentBrowser->addObjectsToViso(m_pHostFileBrowser->selectedItemPathList()); 349 350 } 350 351 … … 541 542 } 542 543 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); 546 547 if (m_pOpenAction) 547 548 connect(m_pOpenAction, &QAction::triggered, -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h
r102400 r102404 109 109 private slots: 110 110 111 void sltAddObjectsToViso( QStringList pathList);111 void sltAddObjectsToViso(); 112 112 void sltSettingsActionToggled(bool fChecked); 113 113 void sltHostBrowserTableSelectionChanged(bool fHasSelection);
Note:
See TracChangeset
for help on using the changeset viewer.