Closed MX795 closed 7 years ago
additional info: when you add just 1 card, it works fine, no matter if cards.db is empty or filled. with only 1 added card the editor doesn't crash on closing. when you add a second card, the above error shows up and it crashes on closing.
fixed
but need to check the graphics
Run-Log:
C:\Python\Python27\python.exe E:/GitHub/cards-against-humanity/editor.py Traceback (most recent call last): File "E:\GitHub\cards-against-humanity\editor\cardlist_toolbar.py", line 47, in newCard panel = frame.left_window.card_grid.addCard(id=cursor.lastrowid, text='', card_type=CARD_WHITE) File "E:\GitHub\cards-against-humanity\editor\cardlist.py", line 134, in addCard self.grid.Add(card, 1, wx.EXPAND | wx.ALL, File "C:\Python\Python27\lib\site-packages\wx-3.0-msw\wx_core.py", line 16711, in getattr raise PyDeadObjectError(self.attrStr % self._name) wx._core.PyDeadObjectError: The C++ part of the GridSizer object has been deleted, attribute access no longer allowed.