GitUnstashDialog: select the first stash in the list by default.

This commit is contained in:
Kirill Likhodedov
2012-04-17 20:10:39 +04:00
parent 20057ee020
commit a9416cbf44
@@ -320,6 +320,7 @@ public class GitUnstashDialog extends DialogWrapper {
catch (VcsException e) {
// ignore error
}
myStashList.setSelectedIndex(0);
}
/**
@@ -381,6 +382,11 @@ public class GitUnstashDialog extends DialogWrapper {
return "reference.VersionControl.Git.Unstash";
}
@Override
public JComponent getPreferredFocusedComponent() {
return myStashList;
}
/**
* Show unstash dialog and process its result
*