def save_edit(self): """ Save edits made by the user to the selected outline. """ number = self.line_number.displayText() title = self.line_title.displayText() outline = Outline() submission = outline.edit_outline(self.edited_item[0][1], self.edited_item[0][2], number, title, self.edited_item[0][0]) if submission[0] == 'True': self.done(True) else: error = QtGui.QMessageBox.critical(self, 'Error', submission[1])