aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-08-31 17:48:26 -0700
committerChris Robinson <[email protected]>2020-08-31 17:48:26 -0700
commit02e51c0525507dd0bc59629851449d4d5ad97223 (patch)
tree34999f298eea29046637e2bc356471b9402ca967
parentaf97a929522e031d326f382bd7104cf8b5651d95 (diff)
Avoid using a deprecated function
-rw-r--r--utils/alsoft-config/mainwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index b67df582..547dc300 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -475,10 +475,9 @@ MainWindow::MainWindow(QWidget *parent) :
for(int i = 0;backendList[i].backend_name[0];i++)
{
QList<QListWidgetItem*> items = ui->backendListWidget->findItems(
- backendList[i].full_string, Qt::MatchFixedString
- );
- foreach(const QListWidgetItem *item, items)
- ui->backendListWidget->setItemHidden(item, false);
+ backendList[i].full_string, Qt::MatchFixedString);
+ foreach(QListWidgetItem *item, items)
+ item->setHidden(false);
}
loadConfig(getDefaultConfigName());