Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cs
gui
alarm-ng
Commits
0a3a03ee
Commit
0a3a03ee
authored
Jul 09, 2021
by
Giacomo Strangolino
Browse files
fixed filter update in historical view
parent
7e07c6f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/alarm.cpp
View file @
0a3a03ee
...
...
@@ -384,7 +384,7 @@ void Alarm::queryDB()
printf
(
"executing query
\"
%s
\"\n
"
,
qstoc
(
query
));
m_filter
->
filter
();
m_filter
->
filter
(
true
);
QApplication
::
restoreOverrideCursor
();
}
...
...
src/filter.h
View file @
0a3a03ee
...
...
@@ -39,14 +39,14 @@ public:
changed
=
true
;
}
void
filter
();
void
filter
(
bool
force
=
false
);
QMap
<
int
,
QString
>
fmap
;
// filter map
QTreeView
*
m_v
;
};
inline
void
AlarmFilter
::
filter
()
{
if
(
changed
)
{
inline
void
AlarmFilter
::
filter
(
bool
force
)
{
if
(
changed
||
force
)
{
changed
=
false
;
QAbstractItemModel
*
m
=
m_v
->
model
();
for
(
int
i
=
0
;
i
<
m
->
rowCount
();
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment