Fixes bug
This commit is contained in:
parent
f817763258
commit
de1851fc6d
@ -97,7 +97,7 @@ def customize_addcards():
|
|||||||
if e.buttons() & Qt.LeftButton:
|
if e.buttons() & Qt.LeftButton:
|
||||||
menu = QMenu(self)
|
menu = QMenu(self)
|
||||||
menu.addAction(_("Query"), lambda: query_from_editor_all_fields(self.editor), QKeySequence(my_shortcut))
|
menu.addAction(_("Query"), lambda: query_from_editor_all_fields(self.editor), QKeySequence(my_shortcut))
|
||||||
menu.addAction(_("Options"), lambda: show_options(self))
|
menu.addAction(_("Options"), lambda: show_options(self, self.editor.note.model()['id']))
|
||||||
menu.exec_(fastwqBtn.mapToGlobal(QPoint(0, fastwqBtn.height())))
|
menu.exec_(fastwqBtn.mapToGlobal(QPoint(0, fastwqBtn.height())))
|
||||||
else:
|
else:
|
||||||
query_from_editor_all_fields(self.editor)
|
query_from_editor_all_fields(self.editor)
|
||||||
|
|||||||
@ -97,7 +97,7 @@ def customize_addcards():
|
|||||||
if e.buttons() & Qt.LeftButton:
|
if e.buttons() & Qt.LeftButton:
|
||||||
menu = QMenu(self)
|
menu = QMenu(self)
|
||||||
menu.addAction(_("Query"), lambda: query_from_editor_all_fields(self.editor), QKeySequence(my_shortcut))
|
menu.addAction(_("Query"), lambda: query_from_editor_all_fields(self.editor), QKeySequence(my_shortcut))
|
||||||
menu.addAction(_("Options"), lambda: show_options(self))
|
menu.addAction(_("Options"), lambda: show_options(self, self.editor.note.model()['id']))
|
||||||
menu.exec_(fastwqBtn.mapToGlobal(QPoint(0, fastwqBtn.height())))
|
menu.exec_(fastwqBtn.mapToGlobal(QPoint(0, fastwqBtn.height())))
|
||||||
else:
|
else:
|
||||||
query_from_editor_all_fields(self.editor)
|
query_from_editor_all_fields(self.editor)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user