From 5f82a3e3a4dc3422141aa1b2c59e5f2d78077592 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Thu, 23 Sep 2021 16:17:57 +0200 Subject: [PATCH] Fixing bugs when deleting object with dependencies. --- .../eu/ad5001/LogarithmPlotter/js/objs/common.js | 2 +- linux/logarithmplotter-local.desktop | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 linux/logarithmplotter-local.desktop diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.js index 0ffce56..6629cb7 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.js @@ -105,7 +105,7 @@ class DrawableObject { delete() { for(var toRemove of this.requiredBy) { toRemove.delete() - currentObjects[toRemove.type] = currentObjects[toRemove.type].filter(obj => obj.name != toRemove.name) + Objects.currentObjects[toRemove.type] = Objects.currentObjects[toRemove.type].filter(obj => obj.name != toRemove.name) } } diff --git a/linux/logarithmplotter-local.desktop b/linux/logarithmplotter-local.desktop deleted file mode 100644 index 33d6f72..0000000 --- a/linux/logarithmplotter-local.desktop +++ /dev/null @@ -1,15 +0,0 @@ -[Desktop Entry] -Version=1.0 -Type=Application -Name=LogarithmPlotter -GenericName=2D plotter software -GenericName[fr]=Logiciel de traçage 2D -Comment=Create BODE diagrams, sequences and repartition functions. -Comment[fr]=Créer des diagrammes de BODE, des suites et des fonctions de répartition. - -Exec=/usr/bin/python3 /home/ad5001/Apps/LogarithmPlotter//run.py %f -Icon=logarithmplotter -MimeType=application/x-logarithm-plot; -Terminal=false -StartupNotify=false -Categories=Math