diff --git a/prefs.js b/prefs.js index d78e3b9d7..12a95249e 100644 --- a/prefs.js +++ b/prefs.js @@ -321,6 +321,10 @@ function addLabel() { var caption = prompt(__("Please enter label caption:"), ""); + if (caption == null) { + return false; + } + if (caption == "") { alert(__("Can't create label: missing caption.")); return false;