diff options
author | number Zero <silverunicorn2011@yandex.ru> | 2018-06-11 01:40:00 +0300 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-02-03 12:40:39 +0000 |
commit | 7c239767ff2e500c0bdc23c0fd0f3e8a2823c0db (patch) | |
tree | f94e9ce2b53207aea56b66d5075403ee6df59f64 /builtin/mainmenu/tab_content.lua | |
parent | 339341ba4e270cc86e82db008e6325f03d1046f7 (diff) | |
download | minetest-7c239767ff2e500c0bdc23c0fd0f3e8a2823c0db.tar.gz minetest-7c239767ff2e500c0bdc23c0fd0f3e8a2823c0db.tar.bz2 minetest-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.lua | 4 |
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 |