summaryrefslogtreecommitdiffhomepage
path: root/proto-wine/ftnoir_protocol_wine_dialog.cpp
diff options
context:
space:
mode:
authorRussell Sim <russell.sim@gmail.com>2020-06-14 07:00:05 +0200
committerRussell Sim <russell.sim@gmail.com>2020-06-14 09:08:23 +0200
commitdc66734ae4d5c95aff3a365c499504e758bc343b (patch)
treef0cd2f7d9543d7461e51abde1485ecf555cc1197 /proto-wine/ftnoir_protocol_wine_dialog.cpp
parente00575681938da48c3dc41a798a7211ae6ca4b87 (diff)
Simplify proton dirfilter
Diffstat (limited to 'proto-wine/ftnoir_protocol_wine_dialog.cpp')
-rw-r--r--proto-wine/ftnoir_protocol_wine_dialog.cpp4
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);