From f0311d1ecb350e061fb870059b13691e17e7743f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 27 Apr 2011 20:30:20 +0900 Subject: [PATCH] remove qstringlist ref from init, disable cram for now --- aqt/__init__.py | 2 +- aqt/overview.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/aqt/__init__.py b/aqt/__init__.py index 0625a6f05..329e22a59 100644 --- a/aqt/__init__.py +++ b/aqt/__init__.py @@ -138,7 +138,7 @@ def run(): rd = runningDir if isMac and getattr(sys, 'frozen', None): rd = os.path.abspath(runningDir + "/../../..") - QCoreApplication.setLibraryPaths(QStringList([rd])) + QCoreApplication.setLibraryPaths([rd]) # create the app app = AnkiApp(sys.argv) diff --git a/aqt/overview.py b/aqt/overview.py index 3b0298b5b..3c1f2aa59 100644 --- a/aqt/overview.py +++ b/aqt/overview.py @@ -6,7 +6,7 @@ import simplejson from aqt.qt import * from anki.consts import NEW_CARDS_RANDOM from anki.hooks import addHook -from aqt.utils import limitedCount +from aqt.utils import limitedCount, showInfo class Overview(object): "Deck overview." @@ -44,8 +44,9 @@ class Overview(object): self.mw.deck.reset() self.mw.moveToState("review") elif url == "cram": - self.mw.deck.cramGroups() - self.mw.moveToState("review") + return showInfo("not yet implemented") + #self.mw.deck.cramGroups() + #self.mw.moveToState("review") elif url == "opts": self.mw.onStudyOptions() elif url == "chgrp":