diff options
author | Blaine | 2020-06-17 14:43:10 +0530 |
---|---|---|
committer | Blaine | 2020-06-17 14:43:10 +0530 |
commit | 7e09e122f75145085ba93a25d19759a8711771c7 (patch) | |
tree | a7bf160354e5bda5a60f0a2710415f49bed4edfd | |
parent | 75696d91982d07a33ff77729dc979bf7d8bb1a3f (diff) | |
download | Chemical-PFD-7e09e122f75145085ba93a25d19759a8711771c7.tar.gz Chemical-PFD-7e09e122f75145085ba93a25d19759a8711771c7.tar.bz2 Chemical-PFD-7e09e122f75145085ba93a25d19759a8711771c7.zip |
preserve comments
-rw-r--r-- | src/main/python/shapes/line.py | 4 |
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 { |