[gnome-maps] placeStore: decrease number of recent on removal



commit 995ab121f66078b13a0a23f79e91e1dc522d8ee0
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Thu Jan 23 13:02:07 2014 +0100

    placeStore: decrease number of recent on removal

 src/placeStore.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/placeStore.js b/src/placeStore.js
index 4214cd3..6a9cad5 100644
--- a/src/placeStore.js
+++ b/src/placeStore.js
@@ -94,6 +94,7 @@ const PlaceStore = new Lang.Class({
                 if (type === PlaceType.RECENT) {
                     let name = model.get_value(iter, Columns.NAME);
                     this._typeTable[name] = null;
+                    this._numRecent--;
                     return true;
                 }
                 return false;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]