diff --git a/platform/platform-impl/src/com/intellij/ide/actions/CollectZippedLogsAction.java b/platform/platform-impl/src/com/intellij/ide/actions/CollectZippedLogsAction.java index d952b41f8691..fd2923e0e0bb 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/CollectZippedLogsAction.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/CollectZippedLogsAction.java @@ -49,28 +49,25 @@ public class CollectZippedLogsAction extends AnAction implements DumbAware { final boolean doNotShowDialog = PropertiesComponent.getInstance().getBoolean(CONFIRMATION_DIALOG); - int response = Messages.OK; - if (!doNotShowDialog) { - response = Messages.showOkCancelDialog( - project, "Included log and settings may contain sensitive data.", "Sensitive Data", - Messages.OK_BUTTON, Messages.CANCEL_BUTTON, Messages.getWarningIcon(), - new DialogWrapper.DoNotAskOption.Adapter() { - @Override - public void rememberChoice(final boolean selected, final int exitCode) { - PropertiesComponent.getInstance().setValue(CONFIRMATION_DIALOG, selected); - } - } - ); - } try { - if (response == Messages.OK) { - final File zippedLogsFile = createZip(project); - if (ShowFilePathAction.isSupported()) { - ShowFilePathAction.openFile(zippedLogsFile); - } - else { - Messages.showInfoMessage(zippedLogsFile.getAbsolutePath(), "Log File"); - } + final File zippedLogsFile = createZip(project); + if (!doNotShowDialog) { + Messages.showIdeaMessageDialog( + project, "Included log and settings may contain sensitive data.", "Sensitive Data", + new String[]{Messages.OK_BUTTON}, 1, Messages.getInformationIcon(), + new DialogWrapper.DoNotAskOption.Adapter() { + @Override + public void rememberChoice(final boolean selected, final int exitCode) { + PropertiesComponent.getInstance().setValue(CONFIRMATION_DIALOG, selected); + } + } + ); + } + if (ShowFilePathAction.isSupported()) { + ShowFilePathAction.openFile(zippedLogsFile); + } + else { + Messages.showInfoMessage(zippedLogsFile.getAbsolutePath(), "Log File"); } } catch (final IOException exception) {