Remove debug prints

Oops.

Contributes to issue CURA-2692.
This commit is contained in:
Ghostkeeper 2016-10-28 13:24:57 +02:00
parent db0fb0c652
commit 4ef2caddf5
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -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)