Fix bug with adding font to recent (font isn't in the font list)
This commit is contained in:
parent
3de538a49d
commit
2c83af7e9e
|
@ -430,7 +430,7 @@ define([
|
|||
},
|
||||
|
||||
addItemToRecent: function(record, silent) {
|
||||
if (this.recent<1) return;
|
||||
if (!record || this.recent<1) return;
|
||||
|
||||
var font = this.store.findWhere({name: record.get('name'),type:FONT_TYPE_RECENT});
|
||||
font && this.store.remove(font);
|
||||
|
|
Loading…
Reference in a new issue