Commit 4d2c9d59 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

fixed filter update in historical view

parent 93f1fd44
...@@ -51,6 +51,8 @@ void AlarmTreeWidget::refresh(const CuData &v) { ...@@ -51,6 +51,8 @@ void AlarmTreeWidget::refresh(const CuData &v) {
QString src = QuString(v, "src"); QString src = QuString(v, "src");
QString dev = src.section('/', 0, src.count('/') - 1); QString dev = src.section('/', 0, src.count('/') - 1);
bool empty = QuString(v, "msg").contains(QRegularExpression("cannot\\s+extract")); bool empty = QuString(v, "msg").contains(QRegularExpression("cannot\\s+extract"));
printf("\e[1;31mempty is %d msg is %s\e[0m\n", empty, vtoc2(v, "msg"));
printf("\e[1;33m%s\e[0m\n", datos(v));
bool err = v["err"].toBool() && !empty; bool err = v["err"].toBool() && !empty;
if(empty) if(empty)
printf("\e[1;34mAlarmTreeWidget::refresh: attribute %s is empty <<<<<<<<<<<<<<<< \e[0m\n", qstoc(src)); printf("\e[1;34mAlarmTreeWidget::refresh: attribute %s is empty <<<<<<<<<<<<<<<< \e[0m\n", qstoc(src));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment