appDisplay: Fix off-by-one when incrementally adding application icons

A "cosmetic" code arrangement I requested in code review resulted
in one too few items being removed from the queue for each incremental
chunk of icons added. Fix.

https://bugzilla.gnome.org/show_bug.cgi?id=648739
This commit is contained in:
Owen W. Taylor 2011-04-27 07:50:10 -04:00 committed by Colin Walters
parent 0e086563bc
commit 569008b084

View File

@ -126,7 +126,7 @@ AlphabeticalView.prototype = {
if (currentTimeMillis - startTimeMillis > MAX_APPLICATION_WORK_MILLIS) if (currentTimeMillis - startTimeMillis > MAX_APPLICATION_WORK_MILLIS)
break; break;
} }
this._pendingAppIds.splice(0, i); this._pendingAppIds.splice(0, i + 1);
if (this._pendingAppIds.length > 0) { if (this._pendingAppIds.length > 0) {
return true; return true;
} else { } else {