aboutsummaryrefslogtreecommitdiff
path: root/core/ext
diff options
context:
space:
mode:
Diffstat (limited to 'core/ext')
-rw-r--r--core/ext/find.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/ext/find.lua b/core/ext/find.lua
index 7d1b7873..f7eb2047 100644
--- a/core/ext/find.lua
+++ b/core/ext/find.lua
@@ -186,10 +186,11 @@ function find.replace(rtext)
function(code)
local ret, val = pcall(loadstring('return '..code))
if not ret then
- cocoa_dialog('msgbox', {
+ cocoa_dialog('ok-msgbox', {
title = locale.FIND_ERROR_DIALOG_TITLE,
text = locale.FIND_ERROR_DIALOG_TEXT,
- ['informative-text'] = val:gsub('"', '\\"')
+ ['informative-text'] = val:gsub('"', '\\"'),
+ ['no-cancel'] = true
})
error()
end