1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Playable preview: swap incorrect actions for Rules and Cancel buttons

Line 435 assigns id 10 (not 1) to the Rules button.
This commit is contained in:
Juhani Numminen 2020-03-02 14:09:14 +02:00 committed by Shlomi Fish
parent 42ede36daf
commit 0a220861a9

View file

@ -319,7 +319,7 @@ class SelectGameDialog(MfxDialog):
if button == 0: # Ok or double click
self.gameid = self.tree.selection_key
self.tree.n_expansions = 1 # save xyview in any case
if button == 1: # Rules
if button == 10: # Rules
doc = self.app.getGameRulesFilename(self.tree.selection_key)
if not doc:
return