From df7ec0d4af2fe5f4843f8c8005346e32e56b6ee3 Mon Sep 17 00:00:00 2001 From: Christian Stenger <christian.stenger@theqtcompany.com> Date: Wed, 2 Sep 2015 09:58:52 +0200 Subject: [PATCH] PythonEditor: Do not create run configuration for project file Change-Id: I2b4b54f3b7ba12ce293816fc2a69a5813b01756c Reviewed-by: hjk <hjk@theqtcompany.com> --- src/plugins/pythoneditor/pythoneditorplugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index d604001ac5..34ee428d0d 100644 --- a/src/plugins/pythoneditor/pythoneditorplugin.cpp +++ b/src/plugins/pythoneditor/pythoneditorplugin.cpp @@ -882,6 +882,9 @@ Project::RestoreResult PythonProject::fromMap(const QVariantMap &map, QString *e foreach (Target *t, targetList) { const QList<RunConfiguration *> runConfigs = t->runConfigurations(); foreach (const QString &file, m_files) { + // skip the 'project' file + if (file.endsWith(QLatin1String(".pyqtc"))) + continue; const Id id = idFromScript(file); bool alreadyPresent = false; foreach (RunConfiguration *runCfg, runConfigs) { -- GitLab