GUI: List embedded cfg files in project dialog

This commit is contained in:
Daniel Marjamäki 2014-01-18 09:21:06 +01:00
parent 2ef95fc794
commit cda9b409ef
1 changed files with 2 additions and 2 deletions

View File

@ -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"));