Qt Creator didn't always find the ui files for SUBDIRS projects

In case no UIDIR was set, we always searched in the toplevel
buildDirectory instead of the buildDirectory conresponding to the actual
pro file.
This commit is contained in:
dt
2009-04-02 15:40:47 +02:00
parent 8c58a2b35c
commit 8df9aaf5c7

View File

@@ -754,7 +754,7 @@ void Qt4ProFileNode::updateUiFiles(const QString &buildDirectory)
const QList<FileNode*> uiFiles = uiFilesVisitor.uiFileNodes;
// Find the UiDir, there can only ever be one
QString uiDir = buildDirectory;
QString uiDir = buildDir();
QStringList tmp = m_varValues[UiDirVar];
if (tmp.size() != 0)
uiDir = tmp.first();