aboutsummaryrefslogtreecommitdiff
path: root/core/ext
diff options
context:
space:
mode:
Diffstat (limited to 'core/ext')
-rw-r--r--core/ext/menu.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ext/menu.lua b/core/ext/menu.lua
index 49e46126..00afc946 100644
--- a/core/ext/menu.lua
+++ b/core/ext/menu.lua
@@ -319,7 +319,7 @@ local function open_webpage(url)
if WIN32 then
cmd = string.format('start "" "%s"', url)
local p = io.popen(cmd)
- if not p then error(l.MENU_BROWSER_ERROR..url) else p:close() end
+ if not p then error(l.MENU_BROWSER_ERROR..url) end
else
cmd = string.format(MAC and 'open "file://%s"' or 'xdg-open "%s" &', url)
if os.execute(cmd) ~= 0 then error(l.MENU_BROWSER_ERROR..url) end