[gnome-shell] appDisplay: Fix off-by-one when incrementally adding application icons
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: Fix off-by-one when incrementally adding application icons
- Date: Tue, 3 May 2011 12:52:53 +0000 (UTC)
commit c0dc363a3d12b48a298908b9377d4e02f52dc26f
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Wed Apr 27 07:50:10 2011 -0400
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
js/ui/appDisplay.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 1dabc2c..0504321 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -126,7 +126,7 @@ AlphabeticalView.prototype = {
if (currentTimeMillis - startTimeMillis > MAX_APPLICATION_WORK_MILLIS)
break;
}
- this._pendingAppIds.splice(0, i);
+ this._pendingAppIds.splice(0, i + 1);
if (this._pendingAppIds.length > 0) {
return true;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]