void HostFilterComponent::setCurrentSessionFile(const File& newFile) { currentSessionFile = newFile; StandaloneFilterWindow* window = findParentComponentOfClass ((StandaloneFilterWindow*) 0); if (window) { String jostMainWindowName; String filename = currentSessionFile.getFileNameWithoutExtension(); jostMainWindowName << JucePlugin_Name; if (!filename.isEmpty()) jostMainWindowName << " - " << filename; window->setName(jostMainWindowName); } }