From cda9b409ef8702690f7f79062b1d346b018b3d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 18 Jan 2014 09:21:06 +0100 Subject: [PATCH] GUI: List embedded cfg files in project dialog --- gui/projectfiledialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/projectfiledialog.cpp b/gui/projectfiledialog.cpp index 60f0d79e3..dcb18ba12 100644 --- a/gui/projectfiledialog.cpp +++ b/gui/projectfiledialog.cpp @@ -46,8 +46,8 @@ ProjectFileDialog::ProjectFileDialog(const QString &path, QWidget *parent) // Checkboxes for the libraries.. const QString applicationFilePath = QCoreApplication::applicationFilePath(); const QString appPath = QFileInfo(applicationFilePath).canonicalPath(); - const QString searchPaths[] = { appPath, appPath + "/cfg", inf.canonicalPath() }; - for (int i = 0; i < 3; i++) { + const QString searchPaths[] = { ":/cfg", appPath, appPath + "/cfg", inf.canonicalPath() }; + for (int i = 0; i < sizeof(searchPaths) / sizeof(searchPaths[0]); i++) { QDir dir(searchPaths[i]); dir.setSorting(QDir::Name); dir.setNameFilters(QStringList("*.cfg"));