summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaine2020-06-17 14:43:10 +0530
committerBlaine2020-06-17 14:43:10 +0530
commit7e09e122f75145085ba93a25d19759a8711771c7 (patch)
treea7bf160354e5bda5a60f0a2710415f49bed4edfd
parent75696d91982d07a33ff77729dc979bf7d8bb1a3f (diff)
downloadChemical-PFD-7e09e122f75145085ba93a25d19759a8711771c7.tar.gz
Chemical-PFD-7e09e122f75145085ba93a25d19759a8711771c7.tar.bz2
Chemical-PFD-7e09e122f75145085ba93a25d19759a8711771c7.zip
preserve comments
-rw-r--r--src/main/python/shapes/line.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py
index 1438fbc..c893fe6 100644
--- a/src/main/python/shapes/line.py
+++ b/src/main/python/shapes/line.py
@@ -284,10 +284,8 @@ class LineLabel(QGraphicsTextItem):
def focusOutEvent(self, event):
super(LineLabel, self).focusOutEvent(event)
- self.setTextInteractionFlags(Qt.NoTextInteraction)
- self.nameChanged.emit()
-
self.setTextInteractionFlags(Qt.NoTextInteraction) # set text non interactive
+ self.nameChanged.emit()
def __getstate__(self):
return {