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:
parent
2db2b5131f
commit
2669af71a2
1 changed files with 7 additions and 7 deletions
|
@ -76,17 +76,17 @@ public class ProgressDialog extends JDialog implements IProgress {
|
||||||
if (run != null) {
|
if (run != null) {
|
||||||
run.run();
|
run.run();
|
||||||
}
|
}
|
||||||
isLive = false;
|
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
exception = new InvocationTargetException(e);
|
exception = new InvocationTargetException(e);
|
||||||
} finally {
|
} finally {
|
||||||
SwingUtilities.invokeLater(new Runnable() {
|
isLive = false;
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
setVisible(false);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
setVisible(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue