diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2023-03-02 21:51:17 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2023-04-27 22:03:38 +0200 |
commit | c61322289cc7ca435bed2f0db6eceb15098dbcab (patch) | |
tree | 6b3cfc4b251bff79a6fb4dc5bafc688fe8d46386 | |
parent | 5a4140099493a1edb4e58ab342377e0239e6b109 (diff) | |
download | gnome-maps-c61322289cc7ca435bed2f0db6eceb15098dbcab.tar.gz |
placeEntry: Use method in PlacePopover to handle activation
-rw-r--r-- | src/placeEntry.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/placeEntry.js b/src/placeEntry.js index b61f7a85..aba7807b 100644 --- a/src/placeEntry.js +++ b/src/placeEntry.js @@ -217,11 +217,7 @@ export class PlaceEntry extends Gtk.SearchEntry { } _onActivate() { - // if the popover is visible and we have a selected item, activate it - let row = this._popover.list.get_selected_row(); - - if (this._popover.visible && row) - row.activate(); + this._popover.handleActivate(); } _completionVisibleFunc(model, iter) { |