mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Fix compilation error on Windows.
This commit is contained in:
@@ -1070,9 +1070,9 @@ public:
|
|||||||
// Fallback: Detect python from default locations
|
// Fallback: Detect python from default locations
|
||||||
QStringList supported_versions;
|
QStringList supported_versions;
|
||||||
supported_versions << "32" << "31" << "30" << "27" << "26" << "25";
|
supported_versions << "32" << "31" << "30" << "27" << "26" << "25";
|
||||||
foreach(const v, supported_versions) {
|
foreach(const QString &v, supported_versions) {
|
||||||
if(QFile::exists("C:/Python"+v+"/python.exe")) {
|
if(QFile::exists("C:/Python"+v+"/python.exe")) {
|
||||||
reg_python.setValue(v[0]+"."+v[1]+"/InstallPath/Default", "C:\\Python"+v);
|
reg_python.setValue(v[0]+"."+v[1]+"/InstallPath/Default", QString("C:\\Python"+v));
|
||||||
return "C:\\Python"+v;
|
return "C:\\Python"+v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user