--- a/src/eric7/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py Mon Nov 07 17:19:58 2022 +0100 @@ -1882,9 +1882,9 @@ """ Private slot to create a new branch starting at the selected commit. """ + from .GitBranchDialog import GitBranchDialog + if len(self.logTree.selectedItems()) == 1: - from .GitBranchDialog import GitBranchDialog - itm = self.logTree.selectedItems()[0] commit = itm.text(self.CommitIdColumn) branches = [ @@ -1920,9 +1920,9 @@ Private slot to create a new branch starting at the selected commit and switch the work tree to it. """ + from .GitBranchDialog import GitBranchDialog + if len(self.logTree.selectedItems()) == 1: - from .GitBranchDialog import GitBranchDialog - itm = self.logTree.selectedItems()[0] commit = itm.text(self.CommitIdColumn) branches = [