Browse Source

Only warn about RESET_CHECK_BOXES if it's really there

master
Daniel 1 month ago
parent
commit
fd14313b9b
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      site-lisp/db-org.el

+ 3
- 3
site-lisp/db-org.el View File

@@ -307,9 +307,9 @@ tag PERIODIC."
307 307
 (defun org-reset-checkbox-state-maybe ()
308 308
   "Reset all checkboxes in an entry if `RESET_CHECK_BOXES' property is set."
309 309
   (interactive "*")
310
-  (warn "Using the RESET_CHECK_BOXES property is deprecated, user periodic tasks instead")
311
-  (if (org-entry-get (point) "RESET_CHECK_BOXES")
312
-      (org-reset-checkbox-state-subtree)))
310
+  (when (org-entry-get (point) "RESET_CHECK_BOXES")
311
+    (warn "Using the RESET_CHECK_BOXES property is deprecated, user periodic tasks instead")
312
+    (org-reset-checkbox-state-subtree)))
313 313
 
314 314
 
315 315
 ;;; Helper Functions for Clocking

Loading…
Cancel
Save