mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
Remove debug prints
Oops. Contributes to issue CURA-2692.
This commit is contained in:
parent
db0fb0c652
commit
4ef2caddf5
1 changed files with 0 additions and 3 deletions
|
@ -56,14 +56,11 @@ class MachineNameValidator(QObject):
|
|||
def updateValidation(self, new_name):
|
||||
is_valid = self.validate(new_name, 0)
|
||||
if is_valid == QValidator.Acceptable:
|
||||
print("VALID")
|
||||
self.validation_regex = "^.*$" #Matches anything.
|
||||
else:
|
||||
print("BROKEN!")
|
||||
self.validation_regex = "a^" #Never matches (unless you manage to get "a" before the start of the string... good luck).
|
||||
self.validationChanged.emit()
|
||||
|
||||
@pyqtProperty("QRegExp", notify=validationChanged)
|
||||
def machineNameRegex(self):
|
||||
print(self.machine_name_regex)
|
||||
return QRegExp(self.machine_name_regex)
|
Loading…
Add table
Add a link
Reference in a new issue