From 7c239767ff2e500c0bdc23c0fd0f3e8a2823c0db Mon Sep 17 00:00:00 2001 From: number Zero Date: Mon, 11 Jun 2018 01:40:00 +0300 Subject: Fix modpack rename dialog selecting the wrong mod --- builtin/mainmenu/tab_content.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'builtin/mainmenu/tab_content.lua') 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 -- cgit v1.2.3