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:
Aleksey Pivovarov
2015-11-27 20:13:38 +03:00
parent 637de4e9e0
commit 802fc6266f
@@ -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) {