enable browser
This commit is contained in:
parent
7a07ab461c
commit
21a99a0dd5
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user