- Excellon Editor: fixed mouse right click was always doing popup context menu
- GUIElements.FCEntry2(): added a try-except clause
This commit is contained in:
@@ -367,7 +367,11 @@ class FCEntry2(FCEntry):
|
||||
self.readyToEdit = True
|
||||
|
||||
def set_value(self, val):
|
||||
self.setText('%.4f' % float(val))
|
||||
try:
|
||||
fval = float(val)
|
||||
except ValueError:
|
||||
return
|
||||
self.setText('%.4f' % fval)
|
||||
|
||||
|
||||
class EvalEntry(QtWidgets.QLineEdit):
|
||||
|
||||
Reference in New Issue
Block a user