mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GitUnstashDialog: select the first stash in the list by default.
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user