Modif methode showWarning