'Let the user change profile if the actual is saved.'

def _changeAtempt(self, widget, event):

    path = self.get_cursor()[0]
    if (not path):
        return
    row = self.liststore[path]
    if row[3]:
        if (event.button != 1):
            return True
        msg = _('Do    you    want    to    discard    the    changes    in    the    Profile?')
        dlg = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_YES_NO, msg)
        stayhere = (dlg.run() != gtk.RESPONSE_YES)
        dlg.destroy()
        if (not stayhere):
            row[0] = row[4]
            row[3] = False
            self.w3af.mainwin.sb(_('The    previous    profile    configuration    was    discarded'))
        return stayhere
    return False
