'Commit the current contents of the editor widgets
back to the scheme.'

def commit(self):

    if (self.__schemeIsUntitled and (self.name_edit.text() == self.tr('untitled'))):
        name = ''
    else:
        name = str(self.name_edit.text()).strip()
    description = str(self.desc_edit.toPlainText()).strip()
    self.scheme.title = name
    self.scheme.description = description
