forked from qt-creator/qt-creator
Qt4Project: Always notify the code models if the file list changed.
Change-Id: Id795a363c9f990e9506eb35ed5a398948f93cf2f Reviewed-on: http://codereview.qt-project.org/4967 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
committed by
Daniel Teske
parent
95284c2f2b
commit
c861af529e
@@ -353,6 +353,7 @@ void Qt4Project::updateFileList()
|
|||||||
if (newFiles != *m_projectFiles) {
|
if (newFiles != *m_projectFiles) {
|
||||||
*m_projectFiles = newFiles;
|
*m_projectFiles = newFiles;
|
||||||
emit fileListChanged();
|
emit fileListChanged();
|
||||||
|
updateCodeModels();
|
||||||
if (debug)
|
if (debug)
|
||||||
qDebug() << Q_FUNC_INFO << *m_projectFiles;
|
qDebug() << Q_FUNC_INFO << *m_projectFiles;
|
||||||
}
|
}
|
||||||
@@ -392,8 +393,6 @@ bool Qt4Project::fromMap(const QVariantMap &map)
|
|||||||
|
|
||||||
update();
|
update();
|
||||||
updateFileList();
|
updateFileList();
|
||||||
// This might be incorrect, need a full update
|
|
||||||
updateCodeModels();
|
|
||||||
|
|
||||||
foreach (Target *t, targets())
|
foreach (Target *t, targets())
|
||||||
static_cast<Qt4BaseTarget *>(t)->createApplicationProFiles();
|
static_cast<Qt4BaseTarget *>(t)->createApplicationProFiles();
|
||||||
@@ -799,7 +798,6 @@ void Qt4Project::decrementPendingEvaluateFutures()
|
|||||||
foreach (Target *t, targets())
|
foreach (Target *t, targets())
|
||||||
static_cast<Qt4BaseTarget *>(t)->createApplicationProFiles();
|
static_cast<Qt4BaseTarget *>(t)->createApplicationProFiles();
|
||||||
updateFileList();
|
updateFileList();
|
||||||
updateCodeModels();
|
|
||||||
if (debug)
|
if (debug)
|
||||||
qDebug()<<" Setting state to Base";
|
qDebug()<<" Setting state to Base";
|
||||||
m_asyncUpdateState = Base;
|
m_asyncUpdateState = Base;
|
||||||
|
Reference in New Issue
Block a user