1

enable browser

This commit is contained in:
Alex Yatskov 2012-12-24 18:58:39 -08:00
parent 7a07ab461c
commit 21a99a0dd5
2 changed files with 7 additions and 7 deletions

View File

@ -53,11 +53,11 @@ class Anki:
return None if note.dupeOrEmpty() else note
#~ def browseNote(self, noteId):
#~ browser = ui.dialogs.get('CardList', self.window())
#~ browser.dialog.filterEdit.setText('fid:' + str(noteId))
#~ browser.updateSearch()
#~ browser.onnote()
def browseNote(self, noteId):
browser = ui.dialogs.get('CardList', self.window())
browser.dialog.filterEdit.setText('fid:' + str(noteId))
browser.updateSearch()
browser.onnote()
def startEditing(self):

View File

@ -284,9 +284,9 @@ class MainWindowReader(QtGui.QMainWindow):
def onDefinitionDoubleClicked(self, item):
if self.anki:
if self.anki is not None:
row = self.listDefinitions.row(item)
self.anki.browseFact(self.addedFacts[row])
self.anki.browseNote(self.addedFacts[row])
def onVisibilityChanged(self, visible):