334 E5MessageBox.critical( |
334 E5MessageBox.critical( |
335 self, |
335 self, |
336 self.trUtf8("Read plugins repository file"), |
336 self.trUtf8("Read plugins repository file"), |
337 self.trUtf8("<p>The plugins repository file <b>{0}</b> " |
337 self.trUtf8("<p>The plugins repository file <b>{0}</b> " |
338 "could not be read. Select Update</p>") |
338 "could not be read. Select Update</p>") |
339 .format(self.pluginRepositoryFile)) |
339 .format(self.pluginRepositoryFile)) |
340 else: |
340 else: |
341 self.__repositoryMissing = True |
341 self.__repositoryMissing = True |
342 QTreeWidgetItem( |
342 QTreeWidgetItem( |
343 self.repositoryList, |
343 self.repositoryList, |
344 ["", self.trUtf8( |
344 ["", self.trUtf8( |
345 "No plugin repository file available.\nSelect Update.") |
345 "No plugin repository file available.\nSelect Update.") |
346 ]) |
346 ]) |
347 self.repositoryList.resizeColumnToContents(1) |
347 self.repositoryList.resizeColumnToContents(1) |
348 |
348 |
349 def __downloadFile(self, url, filename, doneMethod=None): |
349 def __downloadFile(self, url, filename, doneMethod=None): |
350 """ |
350 """ |
351 Private slot to download the given file. |
351 Private slot to download the given file. |