- temporary fix for comboboxes not finding the the value in the items when setting themselves with a value by defaulting to the first item in the list
This commit is contained in:
@@ -2131,7 +2131,10 @@ class FCComboBox(QtWidgets.QComboBox):
|
||||
|
||||
def set_value(self, val):
|
||||
idx = self.findText(str(val))
|
||||
self.setCurrentIndex(idx)
|
||||
if idx == -1:
|
||||
self.setCurrentIndex(0)
|
||||
else:
|
||||
self.setCurrentIndex(idx)
|
||||
|
||||
@property
|
||||
def is_last(self):
|
||||
|
||||
Reference in New Issue
Block a user