From f3b17e7dcdcce711e3d10e15a25aae87dcb3594a Mon Sep 17 00:00:00 2001 From: Nadya Zabrodina Date: Thu, 17 Aug 2017 19:18:30 +0300 Subject: [PATCH] push: check current repo by default if there is no external preselection --- .../dvcs-impl/src/com/intellij/dvcs/push/PushController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/dvcs-impl/src/com/intellij/dvcs/push/PushController.java b/platform/dvcs-impl/src/com/intellij/dvcs/push/PushController.java index 6790478155db..40c981f6ef8a 100644 --- a/platform/dvcs-impl/src/com/intellij/dvcs/push/PushController.java +++ b/platform/dvcs-impl/src/com/intellij/dvcs/push/PushController.java @@ -141,9 +141,11 @@ public class PushController implements Disposable { RepositoryNode nodeForCurrentEditor = findNodeByRepo(myCurrentlyOpenedRepository); if (nodeForCurrentEditor != null) { MyRepoModel currentRepoModel = myView2Model.get(nodeForCurrentEditor); - if (isPreChecked(currentRepoModel)) { + //for ASYNC with no preselected -> check current repo + if (isPreChecked(currentRepoModel) || myPreselectedRepositories.isEmpty()) { // put current editor repo to be loaded at first priorityLoading.put(nodeForCurrentEditor, currentRepoModel); + currentRepoModel.setChecked(true); } }