1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix modpack rename dialog selecting the wrong mod

This commit is contained in:
number Zero 2018-06-11 01:40:00 +03:00 committed by rubenwardy
parent 339341ba4e
commit 7c239767ff
2 changed files with 6 additions and 7 deletions

View file

@ -164,10 +164,12 @@ local function handle_buttons(tabview, fields, tabname, tabdata)
end
if fields["btn_mod_mgr_rename_modpack"] ~= nil then
local dlg_renamemp = create_rename_modpack_dlg(tabdata.selected_pkg)
local mod = packages:get_list()[tabdata.selected_pkg]
local dlg_renamemp = create_rename_modpack_dlg(mod)
dlg_renamemp:set_parent(tabview)
tabview:hide()
dlg_renamemp:show()
packages = nil
return true
end