drop events should save the note

This commit is contained in:
Damien Elmes 2012-03-27 11:22:37 +09:00
parent 4e4c22a233
commit 05fe55231c

View file

@ -902,6 +902,7 @@ class EditorWebView(AnkiWebView):
evt.mouseButtons(), evt.keyboardModifiers()) evt.mouseButtons(), evt.keyboardModifiers())
evt.accept() evt.accept()
QWebView.dropEvent(self, new) QWebView.dropEvent(self, new)
self.editor.saveNow()
def prepareClip(self, keep=False, mode=QClipboard.Clipboard): def prepareClip(self, keep=False, mode=QClipboard.Clipboard):
clip = self.editor.mw.app.clipboard() clip = self.editor.mw.app.clipboard()