From 937e6d27479103a383db10a58ec294e19f11b55e Mon Sep 17 00:00:00 2001 From: Timur Kelman Date: Mon, 2 Oct 2023 18:43:37 +0200 Subject: [PATCH] avoid redefining a variable --- gui/job-details.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/job-details.lua b/gui/job-details.lua index 55f24c88c6..055b245ed6 100644 --- a/gui/job-details.lua +++ b/gui/job-details.lua @@ -359,8 +359,7 @@ local function show_job_details() qerror("Unhandled screen context: ".. df.job_details_context_type[scr.context]) end - local dlg = JobDetails{ job = job, context = scr.context } - dlg:show() + JobDetails{ job = job, context = scr.context }:show() end -- --------------------