mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Esc should cancel merge without confirmation if no changes were made
IDEA-182230 followup - fixes IDEA-191716
This commit is contained in:
@@ -135,7 +135,12 @@ public class TextMergeViewer implements MergeTool.MergeViewer {
|
||||
components.statusPanel = init.statusPanel;
|
||||
components.toolbarActions = init.toolbarActions;
|
||||
|
||||
components.closeHandler = () -> MergeUtil.showExitWithoutApplyingChangesDialog(this, myMergeRequest, myMergeContext);
|
||||
components.closeHandler = () -> {
|
||||
if (myViewer.myContentModified)
|
||||
return MergeUtil.showExitWithoutApplyingChangesDialog(this, myMergeRequest, myMergeContext);
|
||||
else
|
||||
return true;
|
||||
};
|
||||
|
||||
return components;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user