forked from qt-creator/qt-creator
Project: Use Utils::FileName as return type for projectDirectory(...)
Change-Id: I3ea10aa204b1ea41702edab09884b416cd6d9e06 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -214,7 +214,7 @@ void SuppressionDialog::accept()
|
||||
// Add file to project if there is a project containing this file on the file system.
|
||||
if (!ProjectExplorer::SessionManager::projectForFile(path)) {
|
||||
foreach (ProjectExplorer::Project *p, ProjectExplorer::SessionManager::projects()) {
|
||||
if (path.startsWith(p->projectDirectory())) {
|
||||
if (path.startsWith(p->projectDirectory().toString())) {
|
||||
p->rootProjectNode()->addFiles(QStringList() << path);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user