GourmandRecipeManager / gourmand

A recipe manager for desktop with the possibilities to import, organize, and tweak recipes
GNU General Public License v2.0
67 stars 24 forks source link

Trying to open trash gives traceback. #57

Closed eliotb closed 3 years ago

eliotb commented 3 years ago

Steps to Reproduce

  1. Click Tools/Open Trash

Expected Behavior

Current Behavior

  File "/home/eliot/src/python/gourmand/src/gourmand/main.py", line 1260, in _on_bar_response
    self.show_deleted_recs()
  File "/home/eliot/src/python/gourmand/src/gourmand/main.py", line 1136, in show_deleted_recs
    self.recTrash = RecTrash(self.rg)
  File "/home/eliot/src/python/gourmand/src/gourmand/main.py", line 476, in __init__
    RecIndex.__init__(self, self.ui, self.rg.rd, self.rg)
  File "/home/eliot/src/python/gourmand/src/gourmand/recindex.py", line 63, in __init__
    self.setup_widgets()
  File "/home/eliot/src/python/gourmand/src/gourmand/recindex.py", line 138, in setup_widgets
    self.setup_search_views()
  File "/home/eliot/src/python/gourmand/src/gourmand/recindex.py", line 210, in setup_search_views
    sort_by=self.sort_by)
AttributeError: 'RecTrash' object has no attribute 'sort_by'

Possible Solution

Environment

cydanil commented 3 years ago

Thank you!
I had introduced this problem when saving the index sort order in the main window. This is now resolved :)