mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-137748 Lost branches from «Open task» dialogue: set current branch by default
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user