diff gui.lua @ 39:8f7ec6ccf5e3

Comment/debug changes to help in tracking down cache bug. Do not run OnAccept when pressing Enter in an empty editbox.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Thu, 29 Dec 2011 23:15:51 +0000
parents cd745a18d7c7
children dc3a66688e50
line wrap: on
line diff
--- a/gui.lua	Fri Dec 23 01:08:02 2011 +0000
+++ b/gui.lua	Thu Dec 29 23:15:51 2011 +0000
@@ -1499,7 +1499,9 @@
 			w:SetType("checkbox")
 			w:SetLabel(d)
 			if d == "notraid" then
-				w:SetDescription("Tick this before enabling to make the addon work outside of raid groups")
+				w:SetDescription[[Tick this before enabling to make the addon work outside of raid groups]]
+			elseif d == "alsolog" then
+				w:SetDescription[[Also log all debug messages to disk. See print_log.lua in the addon folder for later viewing.]]
 			else
 				w:SetDisabled(not addon.DEBUG_PRINT)
 			end
@@ -2221,6 +2223,7 @@
 		end,]]
 	}
 	t.EditBoxOnEnterPressed = function(editbox)
+		if editbox:GetText() == "" then return end
 		local dialog = editbox:GetParent()
 		if not eoi_st_insert_OnAccept (dialog, dialog.data) then
 			dialog:Hide()  -- replicate OnAccept click behavior