From 67cc778b79c2cca83b6c746bbc52a9d9166743fb Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 12 Sep 2024 14:57:29 +0100 Subject: [PATCH] JAL-4461 fix up formatting and remove old comment --- src/jalview/gui/AlignFrame.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 7f32ad3..ada1cf9 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -1201,14 +1201,14 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, return; } currentFileFormat = chooser.getSelectedFormat(); - // todo is this (2005) test now obsolete - value is never null? while (currentFileFormat == null) { + // if the autodetect format from extension failed.. JvOptionPane.showInternalMessageDialog(Desktop.desktop, - MessageManager - .getString("label.select_file_format_before_saving"), - MessageManager.getString("label.file_format_not_specified"), - JvOptionPane.WARNING_MESSAGE); + MessageManager.getString( + "label.select_file_format_before_saving"), + MessageManager.getString("label.file_format_not_specified"), + JvOptionPane.WARNING_MESSAGE); value = chooser.showSaveDialog(this); if (value != JalviewFileChooser.APPROVE_OPTION) { -- 1.7.10.2