mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06: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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user