aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu/tab_content.lua
diff options
context:
space:
mode:
authornumber Zero <silverunicorn2011@yandex.ru>2018-06-11 01:40:00 +0300
committerrubenwardy <rw@rubenwardy.com>2019-02-03 12:40:39 +0000
commit7c239767ff2e500c0bdc23c0fd0f3e8a2823c0db (patch)
treef94e9ce2b53207aea56b66d5075403ee6df59f64 /builtin/mainmenu/tab_content.lua
parent339341ba4e270cc86e82db008e6325f03d1046f7 (diff)
downloadhax-minetest-server-7c239767ff2e500c0bdc23c0fd0f3e8a2823c0db.tar.gz
hax-minetest-server-7c239767ff2e500c0bdc23c0fd0f3e8a2823c0db.zip
Fix modpack rename dialog selecting the wrong mod
Diffstat (limited to 'builtin/mainmenu/tab_content.lua')
-rw-r--r--builtin/mainmenu/tab_content.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/mainmenu/tab_content.lua b/builtin/mainmenu/tab_content.lua
index 08acd7fed..d8e2c9753 100644
--- a/builtin/mainmenu/tab_content.lua
+++ b/builtin/mainmenu/tab_content.lua
@@ -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