--- a/src/eric7/Plugins/VcsPlugins/vcsGit/GitListDialog.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/Plugins/VcsPlugins/vcsGit/GitListDialog.py Wed Jul 13 14:55:47 2022 +0200 @@ -16,26 +16,27 @@ """ Class implementing a dialog to select from a list. """ + def __init__(self, selections, parent=None): """ Constructor - + @param selections list of entries to select from (list of string) @param parent reference to the parent widget (QWidget) """ super().__init__(parent) self.setupUi(self) - + self.selectionList.addItems(selections) - + def getSelection(self): """ Public method to return the selected entries. - + @return list of selected entries (list of string) """ selection = [] for itm in self.selectionList.selectedItems(): selection.append(itm.text()) - + return selection