Fix globe icon #125

This commit is contained in:
J-Jamet
2018-05-31 15:24:09 +02:00
parent b1be05db4d
commit b7f1275789
3 changed files with 2 additions and 10 deletions

View File

@@ -53,12 +53,7 @@ public class PwIconFactory {
PwIconStandard icon = (PwIconStandard) cache.get(iconId);
if (icon == null) {
if (iconId == 1) {
icon = PwIconStandard.FIRST;
}
else {
icon = new PwIconStandard(iconId);
}
icon = new PwIconStandard(iconId);
cache.put(iconId, icon);
}

View File

@@ -22,9 +22,6 @@ package com.kunzisoft.keepass.database;
public class PwIconStandard extends PwIcon {
public final int iconId;
// The first is number 0
public static PwIconStandard FIRST = new PwIconStandard(0);
public static final int KEY = 0;
public static final int TRASH = 43;
public static final int FOLDER = 48;

View File

@@ -31,7 +31,7 @@ public abstract class PwNode<Parent extends PwGroup> implements ISmallTimeLogger
protected Parent parent = null;
protected PwIconStandard icon = PwIconStandard.FIRST;
protected PwIconStandard icon = new PwIconStandard(0);
protected PwDate creation = new PwDate();
protected PwDate lastMod = new PwDate();