summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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);