Commit b721b2dc authored by Eike Ziller's avatar Eike Ziller Committed by Florian Apolloner

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's avatarTobias Hunger <tobias.hunger@qt.io>
Reviewed-by: default avatarFlorian Apolloner <florian@apolloner.eu>
parent ab3a7628
...@@ -441,6 +441,8 @@ void FolderNavigationWidgetFactory::insertRootDirectory(const RootDirectory &dir ...@@ -441,6 +441,8 @@ void FolderNavigationWidgetFactory::insertRootDirectory(const RootDirectory &dir
const int index = rootIndex(directory.id); const int index = rootIndex(directory.id);
if (index < 0) if (index < 0)
m_rootDirectories.append(directory); m_rootDirectories.append(directory);
else
m_rootDirectories[index] = directory;
emit m_instance->rootDirectoryAdded(directory); emit m_instance->rootDirectoryAdded(directory);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment