summaryrefslogtreecommitdiff
path: root/src/cuchaz/enigma/gui/GuiController.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cuchaz/enigma/gui/GuiController.java')
-rw-r--r--src/cuchaz/enigma/gui/GuiController.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cuchaz/enigma/gui/GuiController.java b/src/cuchaz/enigma/gui/GuiController.java
index cf4f002..90bce52 100644
--- a/src/cuchaz/enigma/gui/GuiController.java
+++ b/src/cuchaz/enigma/gui/GuiController.java
@@ -114,16 +114,19 @@ public class GuiController
114 @Override 114 @Override
115 public void run( ) 115 public void run( )
116 { 116 {
117 ProgressDialog progress = new ProgressDialog( m_gui.getFrame() );
117 try 118 try
118 { 119 {
119 ProgressDialog progress = new ProgressDialog( m_gui.getFrame() );
120 m_deobfuscator.writeSources( dirOut, progress ); 120 m_deobfuscator.writeSources( dirOut, progress );
121 progress.close();
122 } 121 }
123 catch( IOException ex ) 122 catch( Exception ex )
124 { 123 {
125 throw new Error( ex ); 124 throw new Error( ex );
126 } 125 }
126 finally
127 {
128 progress.close();
129 }
127 } 130 }
128 }.start(); 131 }.start();
129 } 132 }