Changeset 75619 in vbox
- Timestamp:
- Nov 20, 2018 1:05:41 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/guestctrl
- Files:
-
- 5 edited
-
UIGuestControlFileManager.cpp (modified) (3 diffs)
-
UIGuestControlFileManager.h (modified) (1 diff)
-
UIGuestControlFileTable.cpp (modified) (1 diff)
-
UIHostFileTable.cpp (modified) (1 diff)
-
UIHostFileTable.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManager.cpp
r75610 r75619 251 251 connect(m_pGuestFileTable, &UIGuestFileTable::sigNewFileOperation, 252 252 this, &UIGuestControlFileManager::sltReceieveNewFileOperation); 253 connect(m_pGuestFileTable, &UIGuestFileTable::sigCacheHostFileObjectsForDeletion, 254 this, &UIGuestControlFileManager::sltCacheHostFileObjectsForDeletion); 253 255 254 256 pFileTableContainerLayout->addWidget(m_pGuestFileTable); … … 335 337 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_CopyToGuest), &QAction::triggered, 336 338 this, &UIGuestControlFileManager::sltCopyHostToGuest); 339 340 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_MoveToHost), &QAction::triggered, 341 this, &UIGuestControlFileManager::sltMoveGuestToHost); 342 connect(m_pActionPool->action(UIActionIndex_M_GuestControlFileManager_S_MoveToGuest), &QAction::triggered, 343 this, &UIGuestControlFileManager::sltMoveHostToGuest); 337 344 338 345 layout ->addWidget(m_pToolBar); … … 522 529 void UIGuestControlFileManager::sltFileOperationComplete(QUuid progressId) 523 530 { 524 if (m_pGuestFileTable) 525 { 526 m_pGuestFileTable->refresh(); 527 /* The following call deletes file objects whose paths have been cached for later deletion: */ 528 m_pGuestFileTable->continueWithMove(progressId); 529 } 530 531 if (!m_pGuestFileTable || !m_pHostFileTable) 532 return; 533 534 /* The following call deletes file objects whose paths have been cached for later deletion: */ 535 m_pGuestFileTable->continueWithMove(progressId); 536 m_pHostFileTable->continueWithMove(progressId); 537 538 m_pHostFileTable->refresh(); 539 m_pGuestFileTable->refresh(); 540 } 541 542 void UIGuestControlFileManager::sltCacheHostFileObjectsForDeletion(const QUuid &moveProgessId, 543 const QStringList &hostPathList) 544 { 531 545 if (m_pHostFileTable) 532 { 533 m_pHostFileTable->refresh(); 534 } 546 m_pHostFileTable->updateDeleteAfterCopyCache(moveProgessId, hostPathList); 535 547 } 536 548 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManager.h
r75610 r75619 116 116 void sltReceieveNewFileOperation(const CProgress &comProgress); 117 117 void sltFileOperationComplete(QUuid progressId); 118 void sltCacheHostFileObjectsForDeletion(const QUuid &moveProgessId, const QStringList &hostPathList); 118 119 119 120 private: -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileTable.cpp
r75610 r75619 1362 1362 void UIGuestControlFileTable::continueWithMove(const QUuid &progressId) 1363 1363 { 1364 QStringList sourcePathList = m_deleteAfterCopyCache.value(progressId);1365 1364 deleteByPath(m_deleteAfterCopyCache.value(progressId, QStringList())); 1366 1365 } -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIHostFileTable.cpp
r75610 r75619 134 134 } 135 135 136 void UIHostFileTable:: setDeleteAfterCopyCache(const QUuid &progressId, const QStringList &sourceObjectsList)136 void UIHostFileTable::updateDeleteAfterCopyCache(const QUuid &progressId, const QStringList &sourceObjectsList) 137 137 { 138 138 m_deleteAfterCopyCache[progressId] = sourceObjectsList; -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIHostFileTable.h
r75610 r75619 34 34 35 35 UIHostFileTable(UIActionPool *pActionPool, QWidget *pParent = 0); 36 void setDeleteAfterCopyCache(const QUuid &progressId, const QStringList &sourceObjectsList);36 void updateDeleteAfterCopyCache(const QUuid &progressId, const QStringList &sourceObjectsList); 37 37 38 38 protected:
Note:
See TracChangeset
for help on using the changeset viewer.

