From 733027e67be9395a668655516fbb97dcf56ad2a1 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Fri, 24 Jul 2015 18:30:40 +0100 Subject: [PATCH] Ignore unnamed views in replay dialog Patch from Denk PADJE. --- gui/dialogs/replay.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gui/dialogs/replay.xml b/gui/dialogs/replay.xml index dfb41342a..dfea8cdb3 100644 --- a/gui/dialogs/replay.xml +++ b/gui/dialogs/replay.xml @@ -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