diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/images/DownloadPicturesService.java b/Mage.Client/src/main/java/org/mage/plugins/card/images/DownloadPicturesService.java index 01cf9461ae..7790f8ac53 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/images/DownloadPicturesService.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/images/DownloadPicturesService.java @@ -117,6 +117,11 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements instance.uiDialog.showDialog(); instance.uiDialog.dispose(); instance.setNeedCancel(true); + + // IMAGES CHECK (download process can broke some files, so fix it here too) + // code executes on cancel/close download dialog (but not executes on app's close -- it's ok) + logger.info("Images: search broken files..."); + CardImageUtils.checkAndFixImageFiles(); } public boolean isNeedCancel() {