From 59a936fca58a72f1a3282bbef692e7bb87961e25 Mon Sep 17 00:00:00 2001 From: Julian Rohrhuber Date: Tue, 10 Jan 2012 22:51:36 +0100 Subject: [PATCH] fix a failure to remove an object when nothing has been added to server actions Signed-off-by: Tim Blechmann --- SCClassLibrary/Common/Control/SystemActions.sc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SCClassLibrary/Common/Control/SystemActions.sc b/SCClassLibrary/Common/Control/SystemActions.sc index f490b50aa..4986b6bb6 100644 --- a/SCClassLibrary/Common/Control/SystemActions.sc +++ b/SCClassLibrary/Common/Control/SystemActions.sc @@ -159,12 +159,12 @@ AbstractServerAction : AbstractSystemAction { } *addToAll { arg object; - Server.set.do({ arg s; this.add(object, s) }); + Server.all.do({ arg s; this.add(object, s) }); } *remove { arg object, server; if(server.isNil) { server = \default }; - this.objects.at(server).remove(object); + this.objects !? { this.objects.at(server).remove(object) }; } *removeServer { arg server; -- 2.11.4.GIT