Allow empty quality

This commit is contained in:
Ruud
2014-06-11 10:11:36 +02:00
parent ef407bcb3c
commit ba9c975335

View File

@@ -29,9 +29,14 @@ var QualityBase = new Class({
},
getQuality: function(identifier){
return this.qualities.filter(function(q){
return q.identifier == identifier;
}).pick();
try {
return this.qualities.filter(function(q){
return q.identifier == identifier;
}).pick();
}
catch(e){}
return {}
},
addSettings: function(){
@@ -104,7 +109,7 @@ var QualityBase = new Class({
var profile_list;
self.settings.createGroup({
'label': 'Profile Defaults',
'description': '(Needs refresh \'' +(App.isMac() ? 'CMD+R' : 'F5')+ '\' after editing)'
'description': '(Needs refresh \'' +(App.isMac() ? 'CMD+R' : 'F5')+ '\' after editing)'
}).adopt(
new Element('.ctrlHolder#profile_ordering').adopt(
new Element('label[text=Order]'),