fix drag&drop failing to save again

I'm guessing the move to qt 5.9.2 caused this regression
This commit is contained in:
Damien Elmes 2017-10-27 18:06:21 +10:00
parent 3b7c0ff733
commit 8233021419

View file

@ -169,6 +169,9 @@ function onDragOver(elem) {
function makeDropTargetCurrent() { function makeDropTargetCurrent() {
dropTarget.focus(); dropTarget.focus();
// the focus event may not fire if the window is not active, so make sure
// the current field is set
currentField = dropTarget;
} }
function onPaste(elem) { function onPaste(elem) {