Changeset 97481 in vbox
- Timestamp:
- Nov 9, 2022 2:13:50 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r97476 r97481 1583 1583 Assert(mVecLists[0]->mVecEntries.size()); 1584 1584 1585 Utf8Str strFirstOp = mDest + mVecLists[0]->mVecEntries[0]->strPath; 1585 Utf8Str const &strFirstOp = mVecLists[0]->mVecEntries[0]->strPath; 1586 1587 /* Now that we know how many objects we're handling, tweak the progress description so that it 1588 * reflects more accurately what the progress is actually doing. */ 1589 if (cOperations > 1) 1590 { 1591 mDesc.printf(tr("Copying \"%s\" [and %zu %s] from guest to \"%s\" on the host ..."), 1592 strFirstOp.c_str(), cOperations - 1, cOperations > 2 ? tr("others") : tr("other"), mDest.c_str()); 1593 } 1594 else 1595 mDesc.printf(tr("Copying \"%s\" from guest to \"%s\" on the host ..."), strFirstOp.c_str(), mDest.c_str()); 1596 1586 1597 hrc = pProgress->init(static_cast<IGuestSession*>(mSession), Bstr(mDesc).raw(), 1587 1598 TRUE /* aCancelable */, cOperations + 1 /* Number of operations */, Bstr(strFirstOp).raw()); … … 2025 2036 Assert(mVecLists[0]->mVecEntries.size()); 2026 2037 2038 Utf8Str const &strFirstOp = mVecLists[0]->mVecEntries[0]->strPath; 2039 2040 /* Now that we know how many objects we're handling, tweak the progress description so that it 2041 * reflects more accurately what the progress is actually doing. */ 2042 if (cOperations > 1) 2043 { 2044 mDesc.printf(tr("Copying \"%s\" [and %zu %s] from host to \"%s\" on the guest ..."), 2045 strFirstOp.c_str(), cOperations - 1, cOperations > 2 ? tr("others") : tr("other"), mDest.c_str()); 2046 } 2047 else 2048 mDesc.printf(tr("Copying \"%s\" from host to \"%s\" on the guest ..."), strFirstOp.c_str(), mDest.c_str()); 2049 2027 2050 hrc = pProgress->init(static_cast<IGuestSession*>(mSession), Bstr(mDesc).raw(), 2028 2051 TRUE /* aCancelable */, cOperations + 1 /* Number of operations */, 2029 Bstr( mDesc).raw());2052 Bstr(strFirstOp).raw()); 2030 2053 } 2031 2054 else /* If no operations have been defined, go with an "empty" progress object when will be used for error handling. */
Note:
See TracChangeset
for help on using the changeset viewer.