We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a017287 commit f671ceaCopy full SHA for f671cea
lib/db_temp.cpp
@@ -33,9 +33,14 @@ db_temp::db_temp() : db_x509name("templates")
33
tmpl->setAsPreDefined();
34
predefs << tmpl;
35
36
- foreach(QString d, QStandardPaths::standardLocations(
37
- QStandardPaths::AppDataLocation))
+ QStringList dirs = QStandardPaths::standardLocations(
+ QStandardPaths::AppDataLocation);
38
+#ifdef INSTALL_DATA_PREFIX
39
+ dirs << QString(INSTALL_DATA_PREFIX);
40
+#endif
41
+ foreach(QString d, dirs)
42
{
43
+ qDebug() << "Looking for templates at" << d;
44
QFileInfoList list = QDir(d).entryInfoList(
45
QStringList("*.xca"),
46
QDir::Files | QDir::NoSymLinks |
0 commit comments