Changeset 38181 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jul 26, 2011 12:31:09 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73139
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/ProgressImpl.cpp
r37069 r38181 931 931 BOOL fCompleted = FALSE; 932 932 BOOL fCanceled = FALSE; 933 ULONG prevPercent = UINT32_MAX; 933 934 ULONG currentPercent = 0; 934 935 ULONG cOp = 0; … … 977 978 if (FAILED(rc)) return rc; 978 979 ++cOp; 979 }else 980 } 981 else 980 982 break; 981 983 } … … 983 985 rc = pProgressAsync->COMGETTER(OperationPercent(¤tPercent)); 984 986 if (FAILED(rc)) return rc; 985 rc = SetCurrentOperationProgress(currentPercent); 986 if (FAILED(rc)) return rc; 987 if (currentPercent != prevPercent) 988 { 989 prevPercent = currentPercent; 990 rc = SetCurrentOperationProgress(currentPercent); 991 if (FAILED(rc)) return rc; 992 } 987 993 } 988 994 if (fCompleted)
Note:
See TracChangeset
for help on using the changeset viewer.