From cfc3d1ae3a8f76dc239dd175837ee4514c919109 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Fri, 26 May 2023 13:39:35 +0300 Subject: [PATCH] UI: Options: Confirm Quit by default --- src/ui/user/iniuser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/user/iniuser.h b/src/ui/user/iniuser.h index b1378bd3..3a9f9d71 100644 --- a/src/ui/user/iniuser.h +++ b/src/ui/user/iniuser.h @@ -56,8 +56,8 @@ public: bool confirmTrayFlags() const { return valueBool("confirm/trayFlags"); } void setConfirmTrayFlags(bool v) { setValue("confirm/trayFlags", v); } - bool confirmQuit() const { return valueBool("confirm/quit"); } - void setConfirmQuit(bool v) { setValue("confirm/quit", v); } + bool confirmQuit() const { return valueBool("confirm/quit", true); } + void setConfirmQuit(bool v) { setValue("confirm/quit", v, true); } QRect homeWindowGeometry() const { return value("homeWindow/geometry").toRect(); } void setHomeWindowGeometry(const QRect &v) { setValue("homeWindow/geometry", v); }