mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 06:13:36 -07:00
Show notification if Python is not found and a search is started
Also, don't bother starting a search if it's known that Python is not available.
This commit is contained in:
parent
7e63908977
commit
26b635ca33
1 changed files with 5 additions and 0 deletions
|
@ -181,6 +181,11 @@ void SearchEngine::giveFocusToSearchInput() {
|
|||
|
||||
// Function called when we click on search button
|
||||
void SearchEngine::on_search_button_clicked() {
|
||||
if (misc::pythonVersion() < 0) {
|
||||
mp_mainWindow->showNotificationBaloon(tr("Search Engine"), tr("Please install Python to use the Search Engine."));
|
||||
return;
|
||||
}
|
||||
|
||||
if (searchProcess->state() != QProcess::NotRunning) {
|
||||
#ifdef Q_OS_WIN
|
||||
searchProcess->kill();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue