Skip to content

Commit 458b715

Browse files
updated comma behaviour in samp trans calc double spin boxes
1 parent fb91670 commit 458b715

File tree

1 file changed

+2
-1
lines changed
  • qt/python/mantidqtinterfaces/mantidqtinterfaces/SampleTransmissionCalculator

1 file changed

+2
-1
lines changed

qt/python/mantidqtinterfaces/mantidqtinterfaces/SampleTransmissionCalculator/stc_view.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ def __init__(self, parent=None):
4343
def _double_spinbox_textChanged(self, text):
4444
if "," in text:
4545
text = text.replace(",", ".")
46-
text = text.replace("..", ".")
4746
oldState = self.sender().blockSignals(True)
47+
self.isEditing = True
4848
self.sender().setValue(float(text))
49+
self.sender().lineEdit().setText(f"{self.sender().value():.1f}")
4950
self.sender().blockSignals(oldState)
5051

5152
def get_input_dict(self):

0 commit comments

Comments
 (0)