IDEA-74499 Remember the last visited root and use it if no files are selected and...
authorKirill Likhodedov <Kirill.Likhodedov@jetbrains.com>
Mon, 30 Jan 2012 06:39:07 +0000 (10:39 +0400)
committerKirill Likhodedov <Kirill.Likhodedov@jetbrains.com>
Mon, 30 Jan 2012 06:39:07 +0000 (10:39 +0400)
commit1e15f70ac6e3f6dcba1940848d6ce1187cf184c9
treed93385059074b3555bd9003a7c227e976398ed24
parentd9b03b365f3a70d297a720b038fa5080e702b6f9
IDEA-74499 Remember the last visited root and use it if no files are selected and no editors open.

If there are no information about recently visited roots, get the project root if exists.
plugins/git4idea/src/git4idea/config/GitVcsSettings.java
plugins/git4idea/src/git4idea/ui/branch/GitBranchUiUtil.java
plugins/git4idea/src/git4idea/ui/branch/GitBranchWidget.java