From 28dc0fdf15380b68753c1f4deed44cc214d86eb2 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Fri, 4 Mar 2022 14:58:48 +0300 Subject: [PATCH] UI: Programs: Reset app's auto-block on Block action --- src/ui/conf/confmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/conf/confmanager.cpp b/src/ui/conf/confmanager.cpp index cd4bc7d8..c7b64a67 100644 --- a/src/ui/conf/confmanager.cpp +++ b/src/ui/conf/confmanager.cpp @@ -159,7 +159,8 @@ const char *const sqlUpdateApp = "UPDATE app" const char *const sqlUpdateAppName = "UPDATE app SET name = ?2 WHERE app_id = ?1;"; -const char *const sqlUpdateAppBlocked = "UPDATE app SET blocked = ?2 WHERE app_id = ?1;"; +const char *const sqlUpdateAppBlocked = "UPDATE app SET blocked = ?2, end_time = NULL" + " WHERE app_id = ?1;"; const char *const sqlUpdateAppResetGroup = "UPDATE app" " SET app_group_id = ?2"