Watch out for - symbol lin jnet files
[jalview.git] / src / jalview / io / FileLoader.java
index 0897207..c662ccf 100755 (executable)
@@ -174,8 +174,10 @@ public class FileLoader implements Runnable
               alignFrame = new AlignFrame(al,\r
                                            AlignFrame.DEFAULT_WIDTH,\r
                                            AlignFrame.DEFAULT_HEIGHT);\r
-              alignFrame.currentFileFormat = format;\r
+\r
               alignFrame.statusBar.setText("Successfully loaded file " + file);\r
+              alignFrame.setFileName(file, format);\r
+\r
 \r
               Desktop.addInternalFrame(alignFrame, file,\r
                                        AlignFrame.DEFAULT_WIDTH,\r
@@ -212,12 +214,8 @@ public class FileLoader implements Runnable
           }\r
         }\r
 \r
-        if (alignFrame != null)\r
-        {\r
-         alignFrame.fileName = file;\r
-         alignFrame.currentFileFormat = format;\r
          updateRecentlyOpened();\r
-        }\r
+\r
       }\r
       catch (OutOfMemoryError er)\r
       {\r