_category(self):         self.save_category()         cat_name = unicode_type(self.input_box.text()).strip()         if cat_name == '':             return False         comps = [c.strip() for c in cat_name.split('.') if c.strip()]         if len(comps) == 0 or '.'.join(comps) != cat_name:             error_dialog(self, _('Invalid name'),                     _('That name contains leading or trailing periods, '                       'multiple periods in a row or spaces before '                       'or after periods.')).exec_()             return False         