diff options
author | Russell Sim <russell.sim@gmail.com> | 2020-06-14 07:00:05 +0200 |
---|---|---|
committer | Russell Sim <russell.sim@gmail.com> | 2020-06-14 09:08:23 +0200 |
commit | dc66734ae4d5c95aff3a365c499504e758bc343b (patch) | |
tree | f0cd2f7d9543d7461e51abde1485ecf555cc1197 /proto-wine/ftnoir_protocol_wine_dialog.cpp | |
parent | e00575681938da48c3dc41a798a7211ae6ca4b87 (diff) |
Simplify proton dirfilter
Diffstat (limited to 'proto-wine/ftnoir_protocol_wine_dialog.cpp')
-rw-r--r-- | proto-wine/ftnoir_protocol_wine_dialog.cpp | 4 |
1 files changed, 1 insertions, 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); |