diff --git a/libtaskmanager/waylandtasksmodel.cpp b/libtaskmanager/waylandtasksmodel.cpp index 794100be8..c1e2172c2 100644 --- a/libtaskmanager/waylandtasksmodel.cpp +++ b/libtaskmanager/waylandtasksmodel.cpp @@ -96,7 +96,7 @@ void WaylandTasksModel::Private::init() configWatcher->addFile(location + QLatin1String("/taskmanagerrulesrc")); } - auto rulesConfigChange = [this, &clearCacheAndRefresh] { + auto rulesConfigChange = [this, clearCacheAndRefresh] { rulesConfig->reparseConfiguration(); clearCacheAndRefresh(); }; diff --git a/libtaskmanager/xwindowtasksmodel.cpp b/libtaskmanager/xwindowtasksmodel.cpp index 38e2dbf94..09e9697e8 100644 --- a/libtaskmanager/xwindowtasksmodel.cpp +++ b/libtaskmanager/xwindowtasksmodel.cpp @@ -139,7 +139,7 @@ void XWindowTasksModel::Private::init() configWatcher->addFile(location + QLatin1String("/taskmanagerrulesrc")); } - auto rulesConfigChange = [this, &clearCacheAndRefresh] { + auto rulesConfigChange = [this, clearCacheAndRefresh] { rulesConfig->reparseConfiguration(); clearCacheAndRefresh(); };