mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
merge: fix freeze on merge window close with ESC (or cross)
MergeTool spends a lot of time listening to external changes. We should destroy MergeViewer before restoring initial state to avoid it (viewer can't do it itself, as on explicit 'cancel' action).
This commit is contained in:
@@ -215,6 +215,7 @@ public abstract class MergeRequestProcessor implements Disposable {
|
||||
onDispose();
|
||||
|
||||
destroyViewer();
|
||||
applyRequestResult(MergeResult.CANCEL);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -269,7 +270,6 @@ public abstract class MergeRequestProcessor implements Disposable {
|
||||
|
||||
@CalledInAwt
|
||||
protected void onDispose() {
|
||||
applyRequestResult(MergeResult.CANCEL);
|
||||
}
|
||||
|
||||
protected void setWindowTitle(@NotNull String title) {
|
||||
|
||||
Reference in New Issue
Block a user