Skip to content

Commit

Permalink
Fixed bug where the preview can partially change the main game cardset.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed May 13, 2024
1 parent 69b98c9 commit a14eef2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pysollib/tile/selectgame.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ def __init__(self, parent, title, app, gameid, bookmark=None, **kw):
self.gameid = gameid
self.bookmark = bookmark
self.criteria = SearchCriteria()
self.cardset = self.app.cardset.copy()
self.random = None
if self.TreeDataHolder_Class.data is None:
self.TreeDataHolder_Class.data = self.TreeData_Class(app)
Expand Down Expand Up @@ -499,6 +500,7 @@ def initKw(self, kw):
return SelectGameDialog.initKw(self, kw)

def destroy(self):
self.app.cardset = self.cardset
self.deletePreview(destroy=1)
self.preview.unbind_all()
SelectGameDialog.destroy(self)
Expand Down

0 comments on commit a14eef2

Please sign in to comment.