From 819aa8a98816018f9709629259be2d81e8d7f5c2 Mon Sep 17 00:00:00 2001 From: Philosopher Date: Sun, 25 Aug 2013 09:54:14 -0500 Subject: [PATCH] Fix for #1185 --- Nasal/view.nas | 4 ++-- gui/dialogs/model-view-select.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Nasal/view.nas b/Nasal/view.nas index ee2b09bdd..3f65153df 100644 --- a/Nasal/view.nas +++ b/Nasal/view.nas @@ -376,8 +376,8 @@ var model_view_handler = { return i; return nil; }, - select: func(which) { - if (num(which) == nil) + select: func(which, by_callsign=0) { + if (by_callsign or num(which) == nil) which = me.find(which) or 0; # turn callsign into index me.setup(me.list[which]); diff --git a/gui/dialogs/model-view-select.xml b/gui/dialogs/model-view-select.xml index 15bc57ecd..1be27e48a 100644 --- a/gui/dialogs/model-view-select.xml +++ b/gui/dialogs/model-view-select.xml @@ -40,7 +40,7 @@ var select = func { var e = dlg.initNode("choice", "").getValue(); if (e == myself or contains(multiplayer.model.callsign, entries[e])) - view.model_view_handler.select(entries[e]); + view.model_view_handler.select(which: entries[e], by_callsign: 1); else settimer(func fgcommand("dialog-show", self), 0); }