--- a/Preferences/ConfigurationPages/IconsPage.py Thu Mar 09 19:28:59 2017 +0100 +++ b/Preferences/ConfigurationPages/IconsPage.py Fri Mar 10 17:32:19 2017 +0100 @@ -36,9 +36,9 @@ # set initial values dirList = Preferences.getIcons("Path")[:] - for dir in dirList: - if dir: - QListWidgetItem(dir, self.iconDirectoryList) + for directory in dirList: + if directory: + QListWidgetItem(directory, self.iconDirectoryList) def save(self): """ @@ -124,9 +124,9 @@ """ Private slot to add the icon directory displayed to the listbox. """ - dir = self.iconDirectoryPicker.text() - if dir: - QListWidgetItem(dir, self.iconDirectoryList) + directory = self.iconDirectoryPicker.text() + if directory: + QListWidgetItem(directory, self.iconDirectoryList) self.iconDirectoryPicker.clear() row = self.iconDirectoryList.currentRow() self.on_iconDirectoryList_currentRowChanged(row) @@ -147,14 +147,14 @@ """ Private slot to display a preview of an icons directory. """ - dir = self.iconDirectoryPicker.text() - if not dir: + directory = self.iconDirectoryPicker.text() + if not directory: itm = self.iconDirectoryList.currentItem() if itm is not None: - dir = itm.text() - if dir: + directory = itm.text() + if directory: from .IconsPreviewDialog import IconsPreviewDialog - dlg = IconsPreviewDialog(self, dir) + dlg = IconsPreviewDialog(self, directory) dlg.exec_()