summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonsettings.h
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-03-28 09:27:54 +0200
committerDavid Schulz <david.schulz@qt.io>2022-03-31 10:43:42 +0000
commitd0c8cc20f5e3ce396e965465d1f29337275aac0c (patch)
treee10eec4faba25b60e6dd92f7ea405a80ada99f8b /src/plugins/python/pythonsettings.h
parentd8589e022239954578a3c590505b10a8d199e0e0 (diff)
downloadqt-creator-d0c8cc20f5e3ce396e965465d1f29337275aac0c.tar.gz
Python: automatically purge outdated autodetected interpreters
Save whether an interpreter was automatically detected. Use this information on startup and check whether the path still exists to remove the interpreters that are gone. Fixes: QTCREATORBUG-27253 Change-Id: I094e573122f2800f643a2708b924a7a9d7e25ae1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonsettings.h')
-rw-r--r--src/plugins/python/pythonsettings.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/python/pythonsettings.h b/src/plugins/python/pythonsettings.h
index 7f6ce31447..565a80d4e7 100644
--- a/src/plugins/python/pythonsettings.h
+++ b/src/plugins/python/pythonsettings.h
@@ -42,7 +42,8 @@ public:
bool windowedSuffix = false);
Interpreter(const QString &id,
const QString &name,
- const Utils::FilePath &command);
+ const Utils::FilePath &command,
+ bool autoDetected = true);
inline bool operator==(const Interpreter &other) const
{
@@ -52,6 +53,7 @@ public:
QString id = QUuid::createUuid().toString();
QString name;
Utils::FilePath command;
+ bool autoDetected = true;
};
class PythonSettings : public QObject