summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js4
1 files changed, 4 insertions, 0 deletions
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;