|
|
@@ -688,7 +688,7 @@ bool MainWindowList::openFile (const File& file, bool openInBackground) |
|
|
|
|
|
|
|
if (file.hasFileExtension (Project::projectFileExtension))
|
|
|
|
{
|
|
|
|
auto previousFrontWindow = getFrontmostWindow();
|
|
|
|
WeakReference<Component> previousFrontWindow (getFrontmostWindow());
|
|
|
|
|
|
|
|
auto* w = getOrCreateEmptyWindow();
|
|
|
|
bool ok = w->openFile (file);
|
|
|
@@ -703,7 +703,7 @@ bool MainWindowList::openFile (const File& file, bool openInBackground) |
|
|
|
closeWindow (w);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (openInBackground && (previousFrontWindow != nullptr))
|
|
|
|
if (openInBackground && previousFrontWindow != nullptr)
|
|
|
|
previousFrontWindow->toFront (true);
|
|
|
|
|
|
|
|
return ok;
|
|
|
|