'Saves the selected profile.'

def save_profile(self, widget=None):

    profile_obj = self._get_profile()
    if (profile_obj is None):
        return
    if (not self.w3af.mainwin.save_state_to_core(relaxedTarget=True)):
        return
    self.w3af.profiles.save_current_to_profile(profile_obj.get_name(), prof_desc=profile_obj.get_desc(), prof_path=profile_obj.get_profile_file())
    self.w3af.mainwin.sb(_('Profile    saved'))
    path = self.get_cursor()[0]
    row = self.liststore[path]
    row[0] = row[4]
    row[3] = False
