summaryrefslogtreecommitdiff
path: root/ComponentSelector.py
diff options
context:
space:
mode:
authorPriyam Nayak2021-06-22 08:41:25 +0530
committerGitHub2021-06-22 08:41:25 +0530
commitecf089991f8f3c15c3c99f376be3b954ec5b3545 (patch)
tree6de70decc9a0907b5fc8b58452c28e85a84d24db /ComponentSelector.py
parent3f8095e27df1ea62c4356c08de09cc42ffca00ed (diff)
parent4f47bbc5cb8a325bdb31776d5c9f2963603695d4 (diff)
downloadChemical-Simulator-GUI-ecf089991f8f3c15c3c99f376be3b954ec5b3545.tar.gz
Chemical-Simulator-GUI-ecf089991f8f3c15c3c99f376be3b954ec5b3545.tar.bz2
Chemical-Simulator-GUI-ecf089991f8f3c15c3c99f376be3b954ec5b3545.zip
Merge pull request #24 from pravindalve/master
Fixed problem of compound updating during simulation
Diffstat (limited to 'ComponentSelector.py')
-rw-r--r--ComponentSelector.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ComponentSelector.py b/ComponentSelector.py
index 79edef4..e8f282c 100644
--- a/ComponentSelector.py
+++ b/ComponentSelector.py
@@ -148,10 +148,9 @@ class ComponentSelector(QDialog,ui_dialog):
def remove_items(self):
try:
- item = self.tableWidget.item(self.tableWidget.currentRow(),1).text()
+ item = self.tableWidget.item(self.tableWidget.currentRow(),1).text() + '(chemsep)'
self.tableWidget.removeRow(self.tableWidget.currentRow())
-
- compound_selected.remove(item)
+ compound_selected.remove(item)
except Exception as e:
print(e)