From 80268cfac8205135bc19901959eae02454674dbd Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Mon, 14 Mar 2016 23:05:37 +0200 Subject: [PATCH] Fix SelectGameDialogWithPreview. --- pysollib/tile/menubar.py | 3 +++ pysollib/tk/menubar.py | 3 +++ pysollib/ui/tktile/menubar.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pysollib/tile/menubar.py b/pysollib/tile/menubar.py index cbe60e06..6e7358c0 100644 --- a/pysollib/tile/menubar.py +++ b/pysollib/tile/menubar.py @@ -80,6 +80,9 @@ class PysolMenubarTk(PysolMenubarTkCommon): def _calcSelectGameDialog(self): return SelectGameDialog + def _calcSelectGameDialogWithPreview(self): + return SelectGameDialogWithPreview + def _calcSoundOptionsDialog(self): return SoundOptionsDialog diff --git a/pysollib/tk/menubar.py b/pysollib/tk/menubar.py index 304d4e02..9922d3fd 100644 --- a/pysollib/tk/menubar.py +++ b/pysollib/tk/menubar.py @@ -71,6 +71,9 @@ class PysolMenubarTk(PysolMenubarTkCommon): def _calcSelectGameDialog(self): return SelectGameDialog + def _calcSelectGameDialogWithPreview(self): + return SelectGameDialogWithPreview + def _calcSoundOptionsDialog(self): return SoundOptionsDialog diff --git a/pysollib/ui/tktile/menubar.py b/pysollib/ui/tktile/menubar.py index 17bf9206..e5d6feeb 100644 --- a/pysollib/ui/tktile/menubar.py +++ b/pysollib/ui/tktile/menubar.py @@ -808,7 +808,7 @@ class PysolMenubarTkCommon: bookmark = self.game.gsaveinfo.bookmarks[-2][0] del self.game.gsaveinfo.bookmarks[-2] after_idle(self.top, self.__restoreCursor) - d = SelectGameDialogWithPreview(self.top, title=_("Select game"), + d = self._calcSelectGameDialogWithPreview()(self.top, title=_("Select game"), app=self.app, gameid=self.game.id, bookmark=bookmark) return self._mSelectGameDialog(d)