mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- ensure the bug reporting dialog is wide enough to see the 'Exit Application' button
- better handling of nulls when updating the shown card in tables
This commit is contained in:
@@ -90,7 +90,7 @@ public class BugReporter {
|
||||
|
||||
_buildSpoilerFooter(sb);
|
||||
|
||||
_showDialog("Report a crash", sb.toString(), false);
|
||||
_showDialog("Report a crash", sb.toString(), true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -222,7 +222,7 @@ public class BugReporter {
|
||||
JOptionPane pane = new JOptionPane(p, JOptionPane.PLAIN_MESSAGE,
|
||||
JOptionPane.DEFAULT_OPTION, null, options.toArray(), options.get(0));
|
||||
JDialog dlg = pane.createDialog(null, title);
|
||||
dlg.setSize(600, 500);
|
||||
dlg.setSize(780, 500);
|
||||
dlg.setResizable(true);
|
||||
dlg.setLocationRelativeTo(null);
|
||||
dlg.setVisible(true);
|
||||
|
||||
@@ -191,14 +191,16 @@ public final class EditorTableModel<T extends InventoryItem> extends AbstractTab
|
||||
public void showSelectedCard(final JTable table) {
|
||||
final int row = table.getSelectedRow();
|
||||
if (row != -1) {
|
||||
final T cp = this.rowToCard(row).getKey();
|
||||
Entry<T, Integer> card = this.rowToCard(row);
|
||||
if (null != card) {
|
||||
T cp = card.getKey();
|
||||
if (cp instanceof CardPrinted) {
|
||||
CDeckEditorUI.SINGLETON_INSTANCE.setCard(((CardPrinted) cp).getMatchingForgeCard());
|
||||
}
|
||||
else if (cp != null) {
|
||||
else {
|
||||
CDeckEditorUI.SINGLETON_INSTANCE.setCard(cp);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
CDeckEditorUI.SINGLETON_INSTANCE.setCard((Card)null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user