mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Minor improvement
Element query widget, when "all" is selected, report and slave is not selected anymore. Summary should be smaller.
This commit is contained in:
@@ -327,8 +327,6 @@ QString ElementQueryWidget::queryStr() const
|
||||
QString from = " FROM element_nomenclature_view";
|
||||
|
||||
QString where;
|
||||
if (ui->m_all_cb->checkState() == Qt::PartiallyChecked)
|
||||
{
|
||||
where = " WHERE (";
|
||||
bool b = false;
|
||||
if (ui->m_terminal_cb->isChecked()) {
|
||||
@@ -356,6 +354,9 @@ QString ElementQueryWidget::queryStr() const
|
||||
where += " element_sub_type = 'protection'";
|
||||
}
|
||||
where.append(")");
|
||||
|
||||
if (where == " WHERE ()") {
|
||||
where.clear();
|
||||
}
|
||||
|
||||
if (where.isEmpty() && !filter_.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user