1
0
Fork 0

Ignore unnamed views in replay dialog

Patch from Denk PADJE.
This commit is contained in:
Stuart Buchanan 2015-07-24 18:30:40 +01:00
parent aea4e306c9
commit 733027e67b

View file

@ -33,9 +33,12 @@
var current_view = getprop("/sim/current-view/view-number");
var i = 0;
foreach (var v; view.views) {
var name = "Unnamed view " ~ v.getIndex();
if (v.getNode("name") != nil) {
name = v.getNode("name").getValue();
if (v.getNode("name") == nil) {
continue;
}
var name = v.getNode("name").getValue();
if (name == nil) {
continue;
}
# Pre-populate the combo box selected value