From dc66734ae4d5c95aff3a365c499504e758bc343b Mon Sep 17 00:00:00 2001 From: Russell Sim Date: Sun, 14 Jun 2020 07:00:05 +0200 Subject: Simplify proton dirfilter --- proto-wine/ftnoir_protocol_wine_dialog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proto-wine/ftnoir_protocol_wine_dialog.cpp b/proto-wine/ftnoir_protocol_wine_dialog.cpp index 76ccfdb5..a954a752 100644 --- a/proto-wine/ftnoir_protocol_wine_dialog.cpp +++ b/proto-wine/ftnoir_protocol_wine_dialog.cpp @@ -10,8 +10,6 @@ static const char* proton_paths[] = { "/.local/share/Steam/steamapps/common", }; -static const QStringList proton_filter = { "Proton*" }; - FTControls::FTControls() { ui.setupUi(this); @@ -19,7 +17,7 @@ FTControls::FTControls() for (const char* path : proton_paths) { QDir dir(QDir::homePath() + path); dir.setFilter(QDir::Dirs); - dir.setNameFilters(proton_filter); + dir.setNameFilters({ "Proton*" }); QFileInfoList list = dir.entryInfoList(); for (int i = 0; i < list.size(); ++i) { QFileInfo fileInfo = list.at(i); -- cgit v1.2.3