GenericProject: Fix "Edit Files..." context menu action

This was using the project file as a base, not the project
directory. So no files could get selected.

Change-Id: I60d684ee22a746ca42b1544f8c29626c438cf589
Task-number: QTCREATORBUG-16011
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-04-06 17:38:39 +02:00
parent afbfe18e67
commit 11b5dfb679

View File

@@ -86,7 +86,7 @@ void GenericProjectPlugin::editFiles()
auto genericProject = qobject_cast<GenericProject *>(ProjectTree::currentProject());
if (!genericProject)
return;
SelectableFilesDialogEditFiles sfd(genericProject->projectFilePath(),
SelectableFilesDialogEditFiles sfd(genericProject->projectDirectory(),
Utils::transform(genericProject->files(), [](const QString &f) { return Utils::FileName::fromString(f); }),
ICore::mainWindow());
if (sfd.exec() == QDialog::Accepted)