SciNotes: fix window icon 71/14071/2
Calixte DENIZET [Wed, 19 Mar 2014 09:36:33 +0000 (10:36 +0100)]
Change-Id: I6027ff476557b345604f1e0bde712f7bd493fb2f

scilab/modules/scinotes/src/java/org/scilab/modules/scinotes/SciNotes.java

index 9bb482b..5e6ad16 100644 (file)
@@ -201,6 +201,7 @@ public class SciNotes extends SwingScilabDockablePanel {
      */
     public SciNotes(String uuid) {
         super(SCINOTES, uuid);
+        setWindowIcon("accessories-text-editor");
         setAssociatedXMLIDForHelp("scinotes");
         this.uuid = UUID.fromString(uuid);
         SciNotesAutosave.autosave();
@@ -293,7 +294,6 @@ public class SciNotes extends SwingScilabDockablePanel {
 
     public void setParentWindow() {
         this.parentWindow = SwingScilabWindow.createWindow(true);
-        setWindowIcon("accessories-text-editor");
         parentWindow.setLocation(150, 50);
         parentWindow.setSize(650, 550);
     }
@@ -698,14 +698,12 @@ public class SciNotes extends SwingScilabDockablePanel {
                 openFile(null, 0, null);
             }
 
-            setWindowIcon("accessories-text-editor");
             WindowsConfigurationManager.restorationFinished(this);
 
             return;
         }
 
         addRestoreTab();
-        setWindowIcon("accessories-text-editor");
         WindowsConfigurationManager.restorationFinished(SciNotes.this);
     }