diff --git a/lisp/lib/ui.el b/lisp/lib/ui.el index 7a7c5fc2e..62183a086 100644 --- a/lisp/lib/ui.el +++ b/lisp/lib/ui.el @@ -19,7 +19,7 @@ If FORCE-P is omitted when `window-size-fixed' is non-nil, resizing will fail." Returns t if it is safe to kill this session. Does not prompt if no real buffers are open." (or (not (ignore-errors (doom-real-buffer-list))) - (if (use-dialog-box-p) + (if use-dialog-box (pcase (x-popup-dialog t `("Really quit Emacs?" ("Quit anyway" . t)