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