[gnome-weather] world: fix some bugs in iter delete code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather] world: fix some bugs in iter delete code
- Date: Tue, 5 Mar 2013 22:24:43 +0000 (UTC)
commit 8eb182d5e28fe04936f9733562b2177d6befd893
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Mar 5 13:46:17 2013 -0500
world: fix some bugs in iter delete code
https://bugzilla.gnome.org/show_bug.cgi?id=695241
src/world.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/world.js b/src/world.js
index d02ac24..6cd4564 100644
--- a/src/world.js
+++ b/src/world.js
@@ -105,7 +105,7 @@ const WorldModel = new Lang.Class({
while (ok) {
let location = this.get_value(iter, Columns.LOCATION);
- let found = true;
+ let found = false;
for (let j = 0; j < newLocations.length; j++) {
let variant = newLocations[j];
if (variant == null)
@@ -127,7 +127,7 @@ const WorldModel = new Lang.Class({
}
for (let i = 0; i < toErase.length; i++)
- this.erase(toErase[i]);
+ this.remove(toErase[i]);
for (let i = 0; i < newLocations.length; i++) {
let variant = newLocations[i];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]