Show useful root directory when opening File System view

Show the active project's root directory.

Fixes: QTCREATORBUG-26297
Change-Id: Id66131582484e6d8d58ee67226bc1123609e5a7c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Eike Ziller
2021-09-29 12:07:22 +02:00
parent 525039daeb
commit 258b4f7c23
3 changed files with 15 additions and 0 deletions

View File

@@ -386,6 +386,8 @@ void SessionManager::setStartupProject(Project *startupProject)
ModeManager::activateMode(Constants::MODE_SESSION);
ModeManager::setFocusToCurrentMode();
}
FolderNavigationWidgetFactory::setFallbackSyncFilePath(
startupProject ? startupProject->projectFilePath().parentDir() : FilePath());
emit m_instance->startupProjectChanged(startupProject);
}