diff --git a/src/pyj/book_list/top_bar.pyj b/src/pyj/book_list/top_bar.pyj index bb845ef582..6760751001 100644 --- a/src/pyj/book_list/top_bar.pyj +++ b/src/pyj/book_list/top_bar.pyj @@ -78,7 +78,10 @@ def set_left_data(container, title='calibre', icon='heart', action=None, tooltip if callable(title_action): a = a.nextSibling - a.addEventListener('click', def(event): event.preventDefault(), title_action();) + a.addEventListener('click', def(event): + event.preventDefault() + title_action.bind(event)() + ) def set_title(container, text): bars = get_bars(container)