From 06d4fde294140a1a7c90959664fb0988e7689a8d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 2 Jan 2011 17:40:11 +0900 Subject: [PATCH] Revert "selective study option" This reverts commit ff18c05fbfc19c0fff93758b8433e22ae4c0a8cc. make it default to true for now --- ankiqt/config.py | 1 - ankiqt/ui/graphs.py | 13 +------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/ankiqt/config.py b/ankiqt/config.py index 1cd7739d8..8e171bca7 100644 --- a/ankiqt/config.py +++ b/ankiqt/config.py @@ -87,7 +87,6 @@ class Config(dict): 'saveAfterAnswerNum': 10, 'saveOnClose': True, 'scrollToAnswer': True, - 'selectiveGraphs': True, 'showCardTimer': True, 'showFontPreview': False, 'showLastCardContent': False, diff --git a/ankiqt/ui/graphs.py b/ankiqt/ui/graphs.py index 3d48e8847..06b78e978 100644 --- a/ankiqt/ui/graphs.py +++ b/ankiqt/ui/graphs.py @@ -161,8 +161,7 @@ class GraphWindow(object): self.parent = parent self.deck = deck self.widgets = [] - self.dg = anki.graphs.DeckGraphs( - deck, selective=self.parent.config['selectiveGraphs']) + self.dg = anki.graphs.DeckGraphs(deck) self.diag = IntervalGraph(parent) self.diag.setWindowTitle(_("Deck Graphs")) if parent.config.get('graphsGeom'): @@ -238,11 +237,6 @@ class GraphWindow(object): self.onShowHide) refresh = QPushButton(_("Refresh")) self.hbox.addWidget(refresh) - sel = QCheckBox(_("Selective Study")) - self.hbox.addWidget(sel) - sel.setChecked(self.parent.config['selectiveGraphs']) - sel.connect(sel, SIGNAL("stateChanged(int)"), - self.onSelective) self.showhide.connect(refresh, SIGNAL("clicked()"), self.onRefresh) buttonBox = QDialogButtonBox(self.diag) @@ -255,11 +249,6 @@ class GraphWindow(object): self.onHelp) self.hbox.addWidget(buttonBox) - def onSelective(self, bool): - self.parent.config['selectiveGraphs'] = bool - self.dg.selective = bool - self.onRefresh() - def showHideAll(self): self.deck.startProgress(len(self.widgets)) for w in self.widgets: