mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +02:00
Every time a dialog opened in edit.js a new callback is created, which wasn't disconnected after the event happened, this caused lots of entities to be created after each next import.
This commit is contained in:
parent
912305fd4b
commit
cabd68a63a
1 changed files with 2 additions and 0 deletions
|
@ -1474,6 +1474,8 @@ function onFileSaveChanged(filename) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onFileOpenChanged(filename) {
|
function onFileOpenChanged(filename) {
|
||||||
|
// disconnect the event, otherwise the requests will stack up
|
||||||
|
Window.openFileChanged.disconnect(onFileOpenChanged);
|
||||||
var importURL = null;
|
var importURL = null;
|
||||||
if (filename !== "") {
|
if (filename !== "") {
|
||||||
importURL = "file:///" + filename;
|
importURL = "file:///" + filename;
|
||||||
|
|
Loading…
Reference in a new issue