JAL-2074 suppress prompt to save closed Groovy script on Jalview Quit
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 21 Jun 2016 14:27:33 +0000 (15:27 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 21 Jun 2016 14:27:33 +0000 (15:27 +0100)
src/jalview/gui/Desktop.java

index 45a52ee..d54e553 100644 (file)
@@ -1184,6 +1184,8 @@ public class Desktop extends jalview.jbgui.GDesktop implements
 
     if (groovyConsole != null)
     {
+      // suppress a possible repeat prompt to save script
+      groovyConsole.setDirty(false);
       groovyConsole.exit();
     }
     System.exit(0);