Changeset 69331 in vbox for trunk/src/VBox/Main/src-all
- Timestamp:
- Oct 26, 2017 9:59:30 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/ProgressImpl.cpp
r69002 r69331 564 564 { 565 565 if (uPercentage > pThis->m_ulOperationPercent) 566 pThis-> m_ulOperationPercent = RT_MIN(uPercentage, 100);566 pThis->setCurrentOperationProgress(uPercentage); 567 567 } 568 568 else … … 571 571 vrc = VERR_CANCELLED; 572 572 } 573 ULONG actualPercent = 0;574 pThis->getPercent(&actualPercent);575 fireProgressPercentageChangedEvent(pThis->pEventSource, pThis->mId.toUtf16().raw(), actualPercent);576 573 } 577 574 /* else ignored */ … … 822 819 AssertReturn(!mCompleted && !mCanceled, E_FAIL); 823 820 824 m_ulOperationPercent = aPercent; 825 826 ULONG actualPercent = 0; 827 getPercent(&actualPercent); 828 fireProgressPercentageChangedEvent(pEventSource, mId.toUtf16().raw(), actualPercent); 821 if (m_ulOperationPercent != aPercent) 822 { 823 m_ulOperationPercent = aPercent; 824 ULONG actualPercent = 0; 825 getPercent(&actualPercent); 826 fireProgressPercentageChangedEvent(pEventSource, mId.toUtf16().raw(), actualPercent); 827 } 829 828 830 829 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.