mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 07:22:16 -07:00
Remove some debugs
This commit is contained in:
parent
424822d982
commit
a729b749ba
2 changed files with 0 additions and 3 deletions
|
|
@ -146,7 +146,6 @@ void VisualDatabaseDisplayColorFilterWidget::syncWithFilterModel()
|
||||||
// Add filters that are in the model but not in the UI
|
// Add filters that are in the model but not in the UI
|
||||||
for (const auto &color : currentFilters) {
|
for (const auto &color : currentFilters) {
|
||||||
if (!activeFilterList.contains(color)) {
|
if (!activeFilterList.contains(color)) {
|
||||||
qDebug() << "Enabling" << color;
|
|
||||||
activeColors[color[0]] = true; // Enable the color
|
activeColors[color[0]] = true; // Enable the color
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -89,12 +89,10 @@ void VisualDatabaseDisplayFilterSaveLoadWidget::loadFilter(const QString &filena
|
||||||
filterModel->blockSignals(true);
|
filterModel->blockSignals(true);
|
||||||
filterModel->filterTree()->blockSignals(true);
|
filterModel->filterTree()->blockSignals(true);
|
||||||
for (const QJsonValue &value : filtersArray) {
|
for (const QJsonValue &value : filtersArray) {
|
||||||
qDebug() << value;
|
|
||||||
if (value.isObject()) {
|
if (value.isObject()) {
|
||||||
QJsonObject filterObj = value.toObject();
|
QJsonObject filterObj = value.toObject();
|
||||||
CardFilter *filter = CardFilter::fromJson(filterObj);
|
CardFilter *filter = CardFilter::fromJson(filterObj);
|
||||||
if (filter) {
|
if (filter) {
|
||||||
qDebug() << "Adding filter " << filter->type() << filter->attr() << filter->term();
|
|
||||||
filterModel->addFilter(filter);
|
filterModel->addFilter(filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue