Fix home button on book list top bar not always working

This commit is contained in:
Kovid Goyal 2017-04-10 23:01:20 +05:30
parent 1aac334e64
commit 7c1b3ce702
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -71,6 +71,8 @@ apply_url_state.back_from_current = def back_from_current(current_query):
if '^' in q.panel: if '^' in q.panel:
q = {k:q[k] for k in q} q = {k:q[k] for k in q}
q.panel = q.panel.rpartition('^')[0] q.panel = q.panel.rpartition('^')[0]
elif q.panel is 'book_list':
q = {}
else: else:
q = {'panel':'book_list'} q = {'panel':'book_list'}
lid = current_library_id() lid = current_library_id()