11005:b918c6c2736b | 11006:a671918232f3 |
---|---|
201 else: | 201 else: |
202 directories = [] | 202 directories = [] |
203 for row in range(self.iconDirectoryList.count()): | 203 for row in range(self.iconDirectoryList.count()): |
204 directories.append(self.iconDirectoryList.item(row).text()) | 204 directories.append(self.iconDirectoryList.item(row).text()) |
205 if directories: | 205 if directories: |
206 dlg = IconsPreviewDialog(directories, self) | 206 dlg = IconsPreviewDialog(directories, parent=self) |
207 dlg.exec() | 207 dlg.exec() |
208 | 208 |
209 @pyqtSlot() | 209 @pyqtSlot() |
210 def on_showDefaultIconsButton_clicked(self): | 210 def on_showDefaultIconsButton_clicked(self): |
211 """ | 211 """ |
223 dlg = IconsPreviewDialog( | 223 dlg = IconsPreviewDialog( |
224 [ | 224 [ |
225 os.path.join(getConfig("ericIconDir"), defaultIconsPath), | 225 os.path.join(getConfig("ericIconDir"), defaultIconsPath), |
226 os.path.join(getConfig("ericIconDir"), defaultIconsPath, "languages"), | 226 os.path.join(getConfig("ericIconDir"), defaultIconsPath, "languages"), |
227 ], | 227 ], |
228 self, | 228 parent=self, |
229 ) | 229 ) |
230 dlg.exec() | 230 dlg.exec() |
231 | 231 |
232 | 232 |
233 def create(_dlg): | 233 def create(_dlg): |