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

Introjucer: minor internal changes.

This commit is contained in:
jules 2012-07-06 10:15:59 +01:00
parent 7a1c8f61a5
commit 9e3cd767aa
8 changed files with 21 additions and 3 deletions

View file

@ -232,7 +232,8 @@ void ProjectContentComponent::updateMissingFileStatuses()
bool ProjectContentComponent::showEditorForFile (const File& f)
{
return showDocument (JucerApplication::getApp()->openDocumentManager.openFile (project, f));
return getCurrentFile() == f
|| showDocument (JucerApplication::getApp()->openDocumentManager.openFile (project, f));
}
bool ProjectContentComponent::showDocument (OpenDocumentManager::Document* doc)