From 095e3aae670a706406414b6ee069872463ec83e7 Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 18 Nov 2010 01:11:11 +0100 Subject: [PATCH] Allow llDialog without any buttons and add the automatic OK button as it is in SL. --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 254ed0f1db..6d8e558365 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -6736,8 +6736,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } if (buttons.Length < 1) { - LSLError("No less than 1 button can be shown"); - return; + buttons.Add("OK"); } if (buttons.Length > 12) {