diff -r 013aee248a62 -r 006ee31b4835 eric6/Preferences/ToolConfigurationDialog.py --- a/eric6/Preferences/ToolConfigurationDialog.py Sun Apr 11 11:34:32 2021 +0200 +++ b/eric6/Preferences/ToolConfigurationDialog.py Sun Apr 11 12:38:16 2021 +0200 @@ -69,11 +69,9 @@ @param shortName short name of the mode (string) @return index of the mode (integer) """ - ind = 0 - for mode in self.redirectionModes: + for ind, mode in enumerate(self.redirectionModes): if mode[0] == shortName: return ind - ind += 1 return 1 # default is "show output" @pyqtSlot()