mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Correctly detect python in PATH
This commit is contained in:
committed by
sledgehammer999
parent
7246b0c254
commit
67355810ae
2
src/mainwindow.cpp
Normal file → Executable file
2
src/mainwindow.cpp
Normal file → Executable file
@@ -1343,7 +1343,7 @@ void MainWindow::on_actionSearch_engine_triggered() {
|
||||
bool res = false;
|
||||
|
||||
// Check if python is already in PATH
|
||||
if (misc::pythonVersion())
|
||||
if (misc::pythonVersion() > 0)
|
||||
res = true;
|
||||
else
|
||||
res = addPythonPathToEnv();
|
||||
|
||||
Reference in New Issue
Block a user