Commit 9c21c96f authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Use fall back to kde4 install patch for layout generator files.

parent 23e23aa4
......@@ -295,6 +295,7 @@ bool LayoutGenerator::availableConfigFiles(UMLScene *scene, QHash<QString,QStrin
QString diagramType = Uml::DiagramType::toString(scene->type()).toLower();
#if QT_VERSION >= 0x050000
QStringList fileNames = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QString::fromLatin1("umbrello/layouts/%1*.desktop").arg(diagramType));
fileNames << QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QString::fromLatin1("kde4/apps/umbrello/layouts/%1*.desktop").arg(diagramType));
#else
KStandardDirs dirs;
QStringList fileNames = dirs.findAllResources("data", QString::fromLatin1("umbrello/layouts/%1*.desktop").arg(diagramType));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment