IDEA-137748 Lost branches from «Open task» dialogue: set current branch by default

This commit is contained in:
Dmitry Avdeev
2015-04-01 18:00:12 +03:00
parent 279aff2686
commit 82358fca35
@@ -148,7 +148,8 @@ public class OpenTaskDialog extends DialogWrapper {
});
}
if (info == null) {
info = tasks[0];
VcsTaskHandler.TaskInfo[] current = handler.getCurrentTasks();
info = current.length > 0 ? current[0] : tasks[0];
}
myBranchFrom.setSelectedItem(info);
myBranchFrom.addActionListener(new ActionListener() {