Font panel dialog Yes button fixed

This commit is contained in:
Jindra Petřík
2014-10-22 16:27:00 +02:00
parent 4ad5f90b72
commit e5f687c8ea
@@ -119,7 +119,7 @@ public class FontPanel extends javax.swing.JPanel {
for (int ic : selChars) {
char c = (char) ic;
if (oldchars.indexOf((int) c) > -1) {
int opt; //yes
int opt = 0; //yes
if (!(yestoall || notoall)) {
opt = View.showOptionDialog(null, translate("message.font.add.exists").replace("%char%", "" + c), translate("message.warning"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, yesno, translate("button.yes"));
if (opt == 2) {
@@ -133,8 +133,6 @@ public class FontPanel extends javax.swing.JPanel {
opt = 0; //yes
} else if (notoall) {
opt = 1; //no
} else {
opt = 1;
}
if (opt == 1) {