[gnome-weather] Fix clicking on rows in the places popover
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather] Fix clicking on rows in the places popover
- Date: Thu, 14 Dec 2017 17:34:12 +0000 (UTC)
commit 44ed7a29bbd3a491c8ad3cd49b76870d728dfa60
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Dec 14 09:32:43 2017 -0800
Fix clicking on rows in the places popover
With recent gjs, the access to row._info fails after the row has been
removed from the listbox.
src/app/world.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/app/world.js b/src/app/world.js
index 11219f8..d5f4cf2 100644
--- a/src/app/world.js
+++ b/src/app/world.js
@@ -88,9 +88,9 @@ var WorldContentView = new Lang.Class({
});
this._listbox.connect('row-activated', (listbox, row) => {
- this.hide();
- this.model.moveLocationToFront(row._info);
this._window.showInfo(row._info, false);
+ this.model.moveLocationToFront(row._info);
+ this.hide();
});
this.model.connect('current-location-changed', (model, info) => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]