From 44ed7a29bbd3a491c8ad3cd49b76870d728dfa60 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 14 Dec 2017 09:32:43 -0800 Subject: 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 file 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) => { -- cgit v0.12