From b721b2dce92cfc24ee9864ba1aef8ad347d3417d Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 29 Sep 2017 12:54:28 +0200 Subject: [PATCH] Fix updating root directories in file system navigation pane We also need to update the static cache of the root directories and their properties, otherwise it will be wrong for file system panes that are opened afterwards. Change-Id: Iaf96f2728132e7c2f349095b347b13f833ccc732 Reviewed-by: Tobias Hunger Reviewed-by: Florian Apolloner --- src/plugins/projectexplorer/foldernavigationwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/projectexplorer/foldernavigationwidget.cpp b/src/plugins/projectexplorer/foldernavigationwidget.cpp index 9d29ead1a11..f981545c690 100644 --- a/src/plugins/projectexplorer/foldernavigationwidget.cpp +++ b/src/plugins/projectexplorer/foldernavigationwidget.cpp @@ -441,6 +441,8 @@ void FolderNavigationWidgetFactory::insertRootDirectory(const RootDirectory &dir const int index = rootIndex(directory.id); if (index < 0) m_rootDirectories.append(directory); + else + m_rootDirectories[index] = directory; emit m_instance->rootDirectoryAdded(directory); }