From 73a3f146eb3aca0ad82eed903e83501ba3f977ad Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Tue, 1 Dec 2009 14:20:03 +0300 Subject: [PATCH] IDEADEV-41474: Exception when ignoring to move a file to another changelist --- .../changes/conflicts/ChangelistConflictAccessProvider.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/conflicts/ChangelistConflictAccessProvider.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/conflicts/ChangelistConflictAccessProvider.java index c37f55f1b172..efae427ae26e 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/conflicts/ChangelistConflictAccessProvider.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/conflicts/ChangelistConflictAccessProvider.java @@ -15,6 +15,7 @@ */ package com.intellij.openapi.vcs.changes.conflicts; +import com.intellij.ide.IdeEventQueue; import com.intellij.openapi.project.Project; import com.intellij.openapi.vcs.changes.Change; import com.intellij.openapi.vcs.changes.ChangeList; @@ -63,10 +64,12 @@ public class ChangelistConflictAccessProvider implements WritingAccessProvider { } ChangelistConflictDialog dialog; + final int savedEventCount = IdeEventQueue.getInstance().getEventCount(); do { dialog = new ChangelistConflictDialog(myProject, new ArrayList(changeLists), denied); dialog.show(); } while (dialog.isOK() && !dialog.getResolution().resolveConflict(myProject, changes)); + IdeEventQueue.getInstance().setEventCount(savedEventCount); if (dialog.isOK()) { options.LAST_RESOLUTION = dialog.getResolution();