SciNotes: icons were disabled after restoration when an already opened document was... 03/14103/1
Calixte DENIZET [Fri, 21 Mar 2014 16:18:31 +0000 (17:18 +0100)]
Change-Id: I7d62753230f92c883da7a1620b422ee00aa82f69

scilab/modules/scinotes/src/java/org/scilab/modules/scinotes/utils/ScilabTabbedPane.java

index 39a6609..22eb202 100644 (file)
@@ -473,8 +473,8 @@ public class ScilabTabbedPane extends JTabbedPane implements DragGestureListener
                 editor.getTabPane().remove(editor.getTabPane().indexOfTabComponent(this));
                 if (editor.getTabPane().getTabCount() == 0) {
                     editor.addEmptyTab();
-                    RestoreOpenedFilesAction.restoreEnabledComponents(editor);
                 }
+                RestoreOpenedFilesAction.restoreEnabledComponents(editor);
             }
         }