From 27e44509cfe28117d666f4caa7aaf0748f20c227 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Tue, 15 Oct 2019 17:09:43 -0300 Subject: [PATCH] [screenshots] fix -> not display no content status --- bauh/view/qt/screenshots.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bauh/view/qt/screenshots.py b/bauh/view/qt/screenshots.py index 8151aab5..485fb04e 100644 --- a/bauh/view/qt/screenshots.py +++ b/bauh/view/qt/screenshots.py @@ -89,9 +89,9 @@ class ScreenshotsDialog(QDialog): if res: if not res.content: - self.logger.warning("Image [{}] from {} has no content".format(idx, url)) - self.screenshots.append(self.i18n['screenshots.download.no_content']) - return + self.logger.warning('Image [{}] from {} has no content'.format(idx, url)) + self.loaded_imgs.append(self.i18n['screenshots.download.no_content']) + self._load_img() else: self.logger.info('Image [{}] successfully downloaded'.format(idx)) pixmap = QPixmap() @@ -106,7 +106,8 @@ class ScreenshotsDialog(QDialog): self._load_img() else: self.logger.info("Could not retrieve image [{}] from {}".format(idx, url)) - self.screenshots.append(self.i18n['screenshots.download.no_response']) + self.loaded_imgs.append(self.i18n['screenshots.download.no_response']) + self._load_img() def back(self): self.img_idx -= 1