diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2019-06-11 21:38:07 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2019-06-12 09:40:51 +0100 |
commit | 7ee8750be4bc5d2c652e6df9455ac56dc45ca28c (patch) | |
tree | c9b14b0808518d07a4de3f3c21ddfb892ea73fdf | |
parent | f61001a15d5fa6c4e3a8f536da047cb493aacc95 (diff) | |
download | deluge-7ee8750be4bc5d2c652e6df9455ac56dc45ca28c.tar.gz deluge-7ee8750be4bc5d2c652e6df9455ac56dc45ca28c.tar.bz2 deluge-7ee8750be4bc5d2c652e6df9455ac56dc45ca28c.zip |
[GTK] Fix peers tab flag tooltip error
Hovering over a country flag resulted in an AttributeError.
This is due to get_tooltip_context now returning a bool value instead of
the tooltip object.
Fixes: #3219
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | deluge/ui/gtk3/peers_tab.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index aaeb6989b..e2d6db23f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 2.0.3 (WiP) +### Gtk UI + +- Fix Peers Tab tooltip and context menu errors (#3266). + ### Web UI - Fix TypeError in Peers Tab setting country flag. diff --git a/deluge/ui/gtk3/peers_tab.py b/deluge/ui/gtk3/peers_tab.py index ea4e757ad..33395b9ba 100644 --- a/deluge/ui/gtk3/peers_tab.py +++ b/deluge/ui/gtk3/peers_tab.py @@ -352,10 +352,10 @@ class PeersTab(Tab): return True def _on_query_tooltip(self, widget, x, y, keyboard_tip, tooltip): - tooltip, x, y, model, path, _iter = widget.get_tooltip_context( + is_tooltip, x, y, model, path, _iter = widget.get_tooltip_context( x, y, keyboard_tip ) - if tooltip: + if is_tooltip: country_code = model.get(_iter, 5)[0] if country_code != ' ' and country_code in COUNTRIES: tooltip.set_text(COUNTRIES[country_code]) |