{"thread":{"id":"18712","subject":"[EGIT PATCH] Select and show a newly created branch in the checkout dialog","startedAt":"2009-04-04T11:55:25Z","lastAt":"2009-04-04T11:55:25Z","messageCount":1,"participants":["Robin Rosenberg"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"110332","messageId":"1238846125-30149-1-git-send-email-robin.rosenberg@dewire.com","threadId":"18712","inReplyTo":null,"subject":"[EGIT PATCH] Select and show a newly created branch in the checkout dialog","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2009-04-04T11:55:25Z","receivedAt":"2009-04-04T11:55:25Z","isPatch":true,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>\n---\n .../ui/internal/dialogs/BranchSelectionDialog.java |    8 +++++++-\n 1 files changed, 7 insertions(+), 1 deletions(-)\n\ndiff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/dialogs/BranchSelectionDialog.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/dialogs/BranchSelectionDialog.java\nindex cbbc384..1866086 100644\n--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/dialogs/BranchSelectionDialog.java\n+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/dialogs/BranchSelectionDialog.java\n@@ -150,6 +150,7 @@ private void fillTreeWithBranches(String select) throws IOException {\n \t\tTreeItem curSubItem = null;\n \t\tString curPrefix = null;\n \t\tString curSubPrefix = null;\n+\t\tTreeItem itemToSelect = null;\n \n \t\tfor (String ref : branches) {\n \t\t\tString shortName = ref;\n@@ -217,7 +218,12 @@ public void widgetDisposed(DisposeEvent e) {\n \t\t\t}\n \t\t\telse item.setText(shortName);\n \t\t\tif (ref.equals(select))\n-\t\t\t\tbranchTree.select(item);\n+\t\t\t\titemToSelect = item;\n+\t\t\tbranchTree.setLinesVisible(true);\n+\t\t}\n+\t\tif (itemToSelect != null) {\n+\t\t\tbranchTree.select(itemToSelect);\n+\t\t\tbranchTree.showItem(itemToSelect);\n \t\t}\n \t}\n \n-- \n1.6.2.1.345.g89fb\n"}]}