diff --git a/src/plugins/pythoneditor/pythoneditorplugin.cpp b/src/plugins/pythoneditor/pythoneditorplugin.cpp index d604001ac58373064ab5f4d94955edcb7ed7a90a..34ee428d0dc6b6d881e63b96cfb286d1d098f1aa 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) {