Merge pull request #11482 from highfidelity/bug/edit.js-opendialog-callback-stack-keeps-growing

Bugfix: edit.js dialog callback events stacking up
This commit is contained in:
Thijs Wenker 2017-09-28 17:00:54 -07:00 committed by GitHub
commit 2ec2203ffa

View file

@ -1474,6 +1474,8 @@ function onFileSaveChanged(filename) {
}
function onFileOpenChanged(filename) {
// disconnect the event, otherwise the requests will stack up
Window.openFileChanged.disconnect(onFileOpenChanged);
var importURL = null;
if (filename !== "") {
importURL = "file:///" + filename;