* Fixed bug in download images logic (fixes #3756).

This commit is contained in:
LevelX2 2017-07-29 17:53:28 +02:00
parent 052fbb3ab6
commit 5cca05dd23

View file

@ -26,7 +26,6 @@ import mage.client.constants.Constants;
import mage.client.dialog.PreferencesDialog; import mage.client.dialog.PreferencesDialog;
import mage.client.util.sets.ConstructedFormats; import mage.client.util.sets.ConstructedFormats;
import mage.remote.Connection; import mage.remote.Connection;
import mage.util.RandomUtil;
import net.java.truevfs.access.TFile; import net.java.truevfs.access.TFile;
import net.java.truevfs.access.TFileOutputStream; import net.java.truevfs.access.TFileOutputStream;
import net.java.truevfs.access.TVFS; import net.java.truevfs.access.TVFS;
@ -107,7 +106,7 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab
p0.add(jLabel1); p0.add(jLabel1);
p0.add(Box.createVerticalStrut(5)); p0.add(Box.createVerticalStrut(5));
ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(new String[]{ ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(new String[]{
// "magiccards.info", // "magiccards.info",
"wizards.com", "wizards.com",
"mythicspoiler.com", "mythicspoiler.com",
"tokens.mtg.onl", //"mtgimage.com (HQ)", "tokens.mtg.onl", //"mtgimage.com (HQ)",
@ -127,7 +126,7 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab
jComboBox1.setAlignmentX(Component.LEFT_ALIGNMENT); jComboBox1.setAlignmentX(Component.LEFT_ALIGNMENT);
jComboBox1.addActionListener(e -> { jComboBox1.addActionListener(e -> {
JComboBox cb = (JComboBox) e.getSource(); JComboBox cb = (JComboBox) e.getSource();
switch (cb.getSelectedIndex()) { switch (cb.getSelectedIndex() + 1) {
case 0: case 0:
cardImageSource = MagicCardsImageSource.instance; cardImageSource = MagicCardsImageSource.instance;
break; break;