Commit 893d4407 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

ProjectExplorer: Ensure the FlatModel is build initially

If the FlatModel is created after a project is opened,
no update was triggered.

This was already fixed, but 8d1f4834b6fe79f992b3a44f8973d32dbc0dddb3
removed the update again.

Task-number: QTCREATORBUG-17690
Change-Id: Ide9499a6579a363f43d6cde2f1a865eddc816d9c
Reviewed-by: default avatarhjk <>
Reviewed-by: Thomas Hartmann's avatarThomas Hartmann <>
parent ede80222
......@@ -82,6 +82,7 @@ FlatModel::FlatModel(QObject *parent)
connect(sm, &SessionManager::aboutToSaveSession, this, &FlatModel::saveExpandData);
connect(sm, &SessionManager::projectAdded, this, &FlatModel::handleProjectAdded);
connect(sm, &SessionManager::startupProjectChanged, this, [this] { layoutChanged(); });
QVariant FlatModel::data(const QModelIndex &index, int role) const
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