--- a/Preferences/ProgramsDialog.py Fri Nov 01 15:48:48 2013 +0100 +++ b/Preferences/ProgramsDialog.py Sun Nov 03 15:58:22 2013 +0100 @@ -45,7 +45,7 @@ self.__hasSearched = False self.programsList.headerItem().setText( - self.programsList.columnCount(), "") + self.programsList.columnCount(), "") self.searchButton = self.buttonBox.addButton( self.trUtf8("Search"), QDialogButtonBox.ActionRole) @@ -300,7 +300,7 @@ exe = Utilities.getExecutablePath(exe) if exe: if versionCommand and \ - (versionStartsWith != "" or \ + (versionStartsWith != "" or (versionRe is not None and versionRe != "")) and \ versionPosition: proc = QProcess() @@ -308,10 +308,9 @@ proc.start(exe, [versionCommand]) finished = proc.waitForFinished(10000) if finished: - output = \ - str(proc.readAllStandardOutput(), - Preferences.getSystem("IOEncoding"), - 'replace') + output = str(proc.readAllStandardOutput(), + Preferences.getSystem("IOEncoding"), + 'replace') if versionRe is None: versionRe = "^{0}".format( re.escape(versionStartsWith))