mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't prohibit deletion of the changelist with name equal to "Default"
No need to do it: VCSs which need this list declare it as read-only. IDEA-63023
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ public class RemoveChangeListAction extends AnAction implements DumbAware {
|
||||
for(ChangeList changeList: lists) {
|
||||
if (!(changeList instanceof LocalChangeList)) return false;
|
||||
LocalChangeList localChangeList = (LocalChangeList) changeList;
|
||||
if (localChangeList.isReadOnly() || localChangeList.hasDefaultName()) return false;
|
||||
if (localChangeList.isReadOnly()) return false;
|
||||
if (localChangeList.isDefault() && ChangeListManager.getInstance(project).getChangeListsCopy().size() <= lists.length) return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user