mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
fixed spamming from windowRoot.qml
This commit is contained in:
parent
8945b75cda
commit
b0130896d1
1 changed files with 4 additions and 2 deletions
|
@ -52,8 +52,10 @@ Windows.ScrollingWindow {
|
|||
|
||||
// used to receive messages from interface script
|
||||
function fromScript(message) {
|
||||
if (loader.item.hasOwnProperty("fromScript")) {
|
||||
loader.item.fromScript(message);
|
||||
if (loader.item !== null) {
|
||||
if (loader.item.hasOwnProperty("fromScript")) {
|
||||
loader.item.fromScript(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue