diff --git a/src/ui/conf/confmanager.cpp b/src/ui/conf/confmanager.cpp index 6a869953..b1582202 100644 --- a/src/ui/conf/confmanager.cpp +++ b/src/ui/conf/confmanager.cpp @@ -679,11 +679,12 @@ qint64 ConfManager::appIdByPath(const QString &appPath) bool ConfManager::addApp(const QString &appPath, const QString &appName, const QDateTime &endTime, int groupIndex, bool useGroupPerm, bool applyChild, bool blocked) { - if (!updateDriverUpdateApp(appPath, groupIndex, useGroupPerm, applyChild, applyChild, blocked)) + if (!updateDriverUpdateApp( + appPath, groupIndex, useGroupPerm, applyChild, blocked, /*remove=*/false)) return false; - return addOrUpdateApp( - appPath, appName, endTime, groupIndex, useGroupPerm, applyChild, blocked, false); + return addOrUpdateApp(appPath, appName, endTime, groupIndex, useGroupPerm, applyChild, blocked, + /*alerted=*/false); } bool ConfManager::deleteApp(qint64 appId)