tuned GUI;
authorwenzelm
Wed, 30 Sep 2015 23:54:22 +0200
changeset 61299 0f8187611ba9
parent 61298 49b964a6fe11
child 61300 9b4843250e1c
tuned GUI;
src/Tools/jEdit/src/session_build.scala
--- a/src/Tools/jEdit/src/session_build.scala	Wed Sep 30 23:37:20 2015 +0200
+++ b/src/Tools/jEdit/src/session_build.scala	Wed Sep 30 23:54:22 2015 +0200
@@ -102,10 +102,7 @@
       {
         if (can_auto_close) conclude()
         else {
-          val button =
-            new Button(if (_return_code == Some(0)) "OK" else "Close") {
-              reactions += { case ButtonClicked(_) => conclude() }
-            }
+          val button = new Button("Close") { reactions += { case ButtonClicked(_) => conclude() } }
           set_actions(button)
           button.peer.getRootPane.setDefaultButton(button.peer)
         }