Commit 2cc7f743 authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 370184 - Existing Filter search value field gets deleted when clicking on it

FIXED-IN: 5.3.2
BUG: 370184
parent 1b03920b
......@@ -211,6 +211,8 @@ void HeadersRuleWidgetHandler::reset(QStackedWidget *functionStack,
lineEdit->blockSignals(true);
lineEdit->clear();
lineEdit->blockSignals(false);
lineEdit->setClearButtonEnabled(false);
lineEdit->setClearButtonEnabled(true);
valueStack->setCurrentWidget(lineEdit);
}
......@@ -266,6 +268,8 @@ bool HeadersRuleWidgetHandler::setRule(QStackedWidget *functionStack,
lineEdit->blockSignals(true);
lineEdit->setText(rule->contents());
lineEdit->blockSignals(false);
lineEdit->setClearButtonEnabled(false);
lineEdit->setClearButtonEnabled(true);
valueStack->setCurrentWidget(lineEdit);
}
}
......
......@@ -201,6 +201,8 @@ void MessageRuleWidgetHandler::reset(QStackedWidget *functionStack,
lineEdit->blockSignals(true);
lineEdit->clear();
lineEdit->blockSignals(false);
lineEdit->setClearButtonEnabled(false);
lineEdit->setClearButtonEnabled(true);
valueStack->setCurrentWidget(lineEdit);
}
}
......@@ -255,6 +257,8 @@ bool MessageRuleWidgetHandler::setRule(QStackedWidget *functionStack,
lineEdit->blockSignals(true);
lineEdit->setText(rule->contents());
lineEdit->blockSignals(false);
lineEdit->setClearButtonEnabled(false);
lineEdit->setClearButtonEnabled(true);
valueStack->setCurrentWidget(lineEdit);
}
}
......
......@@ -264,6 +264,8 @@ void TagRuleWidgetHandler::reset(QStackedWidget *functionStack,
lineEdit->blockSignals(true);
lineEdit->clear();
lineEdit->blockSignals(false);
lineEdit->setClearButtonEnabled(false);
lineEdit->setClearButtonEnabled(true);
valueStack->setCurrentWidget(lineEdit);
}
......@@ -326,6 +328,8 @@ bool TagRuleWidgetHandler::setRule(QStackedWidget *functionStack,
lineEdit->blockSignals(true);
lineEdit->setText(rule->contents());
lineEdit->blockSignals(false);
lineEdit->setClearButtonEnabled(false);
lineEdit->setClearButtonEnabled(true);
valueStack->setCurrentWidget(lineEdit);
}
} else {
......
......@@ -183,6 +183,8 @@ void TextRuleWidgetHandler::reset(QStackedWidget *functionStack,
lineEdit->blockSignals(true);
lineEdit->clear();
lineEdit->blockSignals(false);
lineEdit->setClearButtonEnabled(false);
lineEdit->setClearButtonEnabled(true);
valueStack->setCurrentWidget(lineEdit);
}
}
......@@ -225,6 +227,8 @@ bool TextRuleWidgetHandler::setRule(QStackedWidget *functionStack,
lineEdit->blockSignals(true);
lineEdit->setText(rule->contents());
lineEdit->blockSignals(false);
lineEdit->setClearButtonEnabled(false);
lineEdit->setClearButtonEnabled(true);
valueStack->setCurrentWidget(lineEdit);
}
return true;
......
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