def save_and_close(self):
    self.set_saved()
    params = (self.get_repos_list(), self.sobject_item)
    self.sobject_item.set_watch_folder_path(str(self.repo_path_line_edit.text()))
    if (self.mode == 'create'):
        self.saved_signal.emit(*params)
    if (self.mode == 'edit'):
        self.edited_signal.emit(*params)
    self.close()
def save_and_close(self):
    self.set_saved()
    params = (self.get_repos_list(), self.sobject_item)
    self.sobject_item.set_watch_folder_path(str(self.repo_path_line_edit.text()))
    if (self.mode == 'create'):
        self.saved_signal.emit(*params)
    if (self.mode == 'edit'):
        self.edited_signal.emit(*params)
    self.close()