diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/RemoveChangeListAction.kt b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/RemoveChangeListAction.kt index d0ff3e92e287..a325984b5be1 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/RemoveChangeListAction.kt +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/RemoveChangeListAction.kt @@ -100,6 +100,10 @@ class RemoveChangeListAction : AnAction(), DumbAware { return confirmActiveChangeListRemoval(project, lists) } + return confirmChangeListRemoval(project, lists) + } + + private fun confirmChangeListRemoval(project: Project, lists: List): Boolean { val haveNoChanges = lists.all { it.changes.isEmpty() } if (haveNoChanges) return true