fix bug in progress dialog

git-svn-id: https://osmand.googlecode.com/svn/trunk@82 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-05-26 15:47:38 +00:00
parent 2db2b5131f
commit 2669af71a2

View file

@ -76,10 +76,11 @@ public class ProgressDialog extends JDialog implements IProgress {
if (run != null) {
run.run();
}
isLive = false;
} catch (RuntimeException e) {
exception = new InvocationTargetException(e);
} finally {
isLive = false;
}
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
@ -87,7 +88,6 @@ public class ProgressDialog extends JDialog implements IProgress {
}
});
}
}
}