From 8233021419209e18c666c5538a68bf14a617d86d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 27 Oct 2017 18:06:21 +1000 Subject: [PATCH] fix drag&drop failing to save again I'm guessing the move to qt 5.9.2 caused this regression --- web/editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/editor.js b/web/editor.js index eab1ffe6c..7755db6fd 100644 --- a/web/editor.js +++ b/web/editor.js @@ -169,6 +169,9 @@ function onDragOver(elem) { function makeDropTargetCurrent() { 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) {