1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

Introjucer: fix for module deletion bug, and some clean-ups.

This commit is contained in:
jules 2013-11-03 12:56:50 +00:00
parent 3fe70cd8f0
commit 172f19f4a4
4 changed files with 25 additions and 37 deletions

View file

@ -705,16 +705,16 @@ void EnabledModuleList::addModule (const File& moduleManifestFile, bool copyLoca
shouldShowAllModuleFilesInProject (moduleID) = true;
shouldCopyModuleFilesLocally (moduleID) = copyLocally;
String path (FileHelpers::getRelativePathFrom (moduleManifestFile.getParentDirectory().getParentDirectory(),
project.getProjectFolder()));
RelativePath path (moduleManifestFile.getParentDirectory().getParentDirectory(),
project.getProjectFolder(), RelativePath::projectFolder);
for (Project::ExporterIterator exporter (project); exporter.next();)
exporter->getPathForModuleValue (moduleID) = path;
exporter->getPathForModuleValue (moduleID) = path.toUnixStyle();
}
}
}
void EnabledModuleList::removeModule (const String& moduleID)
void EnabledModuleList::removeModule (String moduleID) // must be pass-by-value, and not a const ref!
{
for (int i = state.getNumChildren(); --i >= 0;)
if (state.getChild(i) [Ids::ID] == moduleID)