Mercurial > wow > ouroloot
comparison gui.lua @ 26:f866daadcdf6
Avoid errors in case of unusual race condition closing windows with open dropdowns.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Fri, 07 Oct 2011 03:47:45 +0000 |
| parents | cb9635999171 |
| children | 68d7b903ee17 |
comparison
equal
deleted
inserted
replaced
| 25:cb9635999171 | 26:f866daadcdf6 |
|---|---|
| 375 -- Tab 1: Events Of Interest | 375 -- Tab 1: Events Of Interest |
| 376 -- This actually takes up quite a bit of the file. | 376 -- This actually takes up quite a bit of the file. |
| 377 local eoi_editcell | 377 local eoi_editcell |
| 378 | 378 |
| 379 local function dropdownmenu_handler (ddbutton, subfunc, arg) | 379 local function dropdownmenu_handler (ddbutton, subfunc, arg) |
| 380 local i = _d:GetUserData("DD loot index") | 380 local i = _d and _d.GetUserData and _d:GetUserData("DD loot index") |
| 381 subfunc(i,arg) | 381 if i then |
| 382 _d:GetUserData("eoiST"):OuroLoot_Refresh(i) | 382 subfunc(i,arg) |
| 383 _d:GetUserData("eoiST"):OuroLoot_Refresh(i) | |
| 384 end | |
| 383 end | 385 end |
| 384 | 386 |
| 385 local function gen_easymenu_table (initial, list, funcs) | 387 local function gen_easymenu_table (initial, list, funcs) |
| 386 for _,tag in ipairs(list) do | 388 for _,tag in ipairs(list) do |
| 387 local name, arg, tiptext | 389 local name, arg, tiptext |
