1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Introjucer: tweaked document focus behaviour.

This commit is contained in:
jules 2012-07-13 14:50:49 +01:00
parent 2329cfa286
commit baecac82d9
7 changed files with 30 additions and 20 deletions

View file

@ -199,7 +199,7 @@ bool MainWindow::openFile (const File& file)
}
else if (file.exists())
{
return getProjectContentComponent()->showEditorForFile (file);
return getProjectContentComponent()->showEditorForFile (file, true);
}
return false;
@ -349,10 +349,10 @@ void MainWindowList::closeWindow (MainWindow* w)
}
}
void MainWindowList::openDocument (OpenDocumentManager::Document* doc)
void MainWindowList::openDocument (OpenDocumentManager::Document* doc, bool grabFocus)
{
MainWindow* w = getOrCreateFrontmostWindow();
w->getProjectContentComponent()->showDocument (doc);
w->getProjectContentComponent()->showDocument (doc, grabFocus);
}
bool MainWindowList::openFile (const File& file)