mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
LH: check for project disposal in dialogs
This commit is contained in:
@@ -264,8 +264,12 @@ public abstract class HistoryDialog<T extends HistoryDialogModel> extends FrameW
|
||||
}
|
||||
|
||||
public void run() {
|
||||
if (myProject.isDisposed()) return;
|
||||
|
||||
invokeAndWait(new Runnable() {
|
||||
public void run() {
|
||||
if (myProject.isDisposed()) return;
|
||||
|
||||
isUpdating = true;
|
||||
updateActions();
|
||||
myDiffView.startUpdating();
|
||||
@@ -283,7 +287,7 @@ public abstract class HistoryDialog<T extends HistoryDialogModel> extends FrameW
|
||||
final Runnable finalApply = apply;
|
||||
invokeAndWait(new Runnable() {
|
||||
public void run() {
|
||||
if (isDisposed()) return;
|
||||
if (myProject.isDisposed()) return;
|
||||
|
||||
isUpdating = false;
|
||||
if (finalApply != null) {
|
||||
|
||||
Reference in New Issue
Block a user