def accept(self): if self.origCollection: if self.origCollection != self.tmpCollection: self.tmpCollection._id = random_id() self.collection = self.tmpCollection QDialog.accept(self)
def accept(self): if self.origCollection: if self.origCollection != self.tmpCollection: self.tmpCollection._id = random_id() self.collection = self.tmpCollection self.titleText.clear() self.descriptionText.clear() QDialog.accept(self)