Changeset View
Changeset View
Standalone View
Standalone View
src/core/engine.cpp
Show First 20 Lines • Show All 692 Lines • ▼ Show 20 Line(s) | 689 | { | |||
---|---|---|---|---|---|
693 | 693 | | |||
694 | const QLatin1String dirReplace("%d"); | 694 | const QLatin1String dirReplace("%d"); | ||
695 | if (adoption.contains(dirReplace)) { | 695 | if (adoption.contains(dirReplace)) { | ||
696 | QString installPath = sharedDir(entry.installedFiles(), m_installation->targetInstallationPath()).path(); | 696 | QString installPath = sharedDir(entry.installedFiles(), m_installation->targetInstallationPath()).path(); | ||
697 | adoption.replace(dirReplace, installPath); | 697 | adoption.replace(dirReplace, installPath); | ||
698 | } | 698 | } | ||
699 | 699 | | |||
700 | const QLatin1String fileReplace("%f"); | 700 | const QLatin1String fileReplace("%f"); | ||
701 | QStringList ret; | | |||
702 | if (adoption.contains(fileReplace)) { | 701 | if (adoption.contains(fileReplace)) { | ||
703 | if (entry.installedFiles().isEmpty()) { | 702 | if (entry.installedFiles().isEmpty()) { | ||
704 | qCWarning(KNEWSTUFFCORE) << "no installed files to adopt"; | 703 | qCWarning(KNEWSTUFFCORE) << "no installed files to adopt"; | ||
705 | } else if (entry.installedFiles().count() != 1) { | 704 | } else if (entry.installedFiles().count() != 1) { | ||
706 | qCWarning(KNEWSTUFFCORE) << "can only adopt one file, will be using the first" << entry.installedFiles().at(0); | 705 | qCWarning(KNEWSTUFFCORE) << "can only adopt one file, will be using the first" << entry.installedFiles().at(0); | ||
707 | } | 706 | } | ||
708 | 707 | | |||
709 | adoption.replace(fileReplace, entry.installedFiles().at(0)); | 708 | adoption.replace(fileReplace, entry.installedFiles().at(0)); | ||
Show All 13 Lines |