From a754fced75565f4c8d0f94f41b576415f3f9dcf0 Mon Sep 17 00:00:00 2001 From: Louie S Date: Mon, 1 Apr 2024 21:34:20 -0400 Subject: Keep static variables based on backend information to reduce number of database calls --- src/rule.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rule.cpp') diff --git a/src/rule.cpp b/src/rule.cpp index d90a0db..85da13a 100644 --- a/src/rule.cpp +++ b/src/rule.cpp @@ -1,3 +1,5 @@ +#include + #include "rule.h" Rule::Rule(int id, int entry_id, When when, QDateTime date, QString color, QString highlight) : @@ -9,3 +11,5 @@ Rule::Rule(int id, int entry_id, When when, QDateTime date, QString color, QStri highlight(highlight) { } + +QList Rule::rules; -- cgit