From 5cca05dd23a62a28d04d20567d9db704e6949aa1 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 29 Jul 2017 17:53:28 +0200 Subject: [PATCH] * Fixed bug in download images logic (fixes #3756). --- .../java/org/mage/plugins/card/images/DownloadPictures.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/images/DownloadPictures.java b/Mage.Client/src/main/java/org/mage/plugins/card/images/DownloadPictures.java index 8249f277f80..02e639ba193 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/images/DownloadPictures.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/images/DownloadPictures.java @@ -26,7 +26,6 @@ import mage.client.constants.Constants; import mage.client.dialog.PreferencesDialog; import mage.client.util.sets.ConstructedFormats; import mage.remote.Connection; -import mage.util.RandomUtil; import net.java.truevfs.access.TFile; import net.java.truevfs.access.TFileOutputStream; import net.java.truevfs.access.TVFS; @@ -107,7 +106,7 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab p0.add(jLabel1); p0.add(Box.createVerticalStrut(5)); ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(new String[]{ - // "magiccards.info", + // "magiccards.info", "wizards.com", "mythicspoiler.com", "tokens.mtg.onl", //"mtgimage.com (HQ)", @@ -127,7 +126,7 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab jComboBox1.setAlignmentX(Component.LEFT_ALIGNMENT); jComboBox1.addActionListener(e -> { JComboBox cb = (JComboBox) e.getSource(); - switch (cb.getSelectedIndex()) { + switch (cb.getSelectedIndex() + 1) { case 0: cardImageSource = MagicCardsImageSource.instance; break;