Fix for #1185
This commit is contained in:
parent
41fc0498c0
commit
819aa8a988
2 changed files with 3 additions and 3 deletions
|
@ -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]);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue