From 4b78af268fa35e2ab10f84f5e1dc2b2013d02399 Mon Sep 17 00:00:00 2001 From: xavier2k6 <42386382+xavier2k6@users.noreply.github.com> Date: Sun, 12 Sep 2021 17:17:06 +0100 Subject: [PATCH 1/2] Update python installer URL for Windows --- src/gui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 15a7ed5b6..ded0c1c11 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -2159,9 +2159,9 @@ void MainWindow::installPython() setCursor(QCursor(Qt::WaitCursor)); // Download python #ifdef QBT_APP_64BIT - const QString installerURL = "https://www.python.org/ftp/python/3.8.5/python-3.8.5-amd64.exe"; + const QString installerURL = "https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe"; #else - const QString installerURL = "https://www.python.org/ftp/python/3.8.5/python-3.8.5.exe"; + const QString installerURL = "https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe"; #endif Net::DownloadManager::instance()->download( Net::DownloadRequest(installerURL).saveToFile(true) From a92a6404cb2382996d517ac07c2016d78bc1721c Mon Sep 17 00:00:00 2001 From: xavier2k6 <42386382+xavier2k6@users.noreply.github.com> Date: Sat, 9 Oct 2021 10:45:26 +0100 Subject: [PATCH 2/2] Make Python minimum version requirement an argument --- src/gui/mainwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index ded0c1c11..0b485958c 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -1887,15 +1887,15 @@ void MainWindow::on_actionSearchWidget_triggered() #ifdef Q_OS_WIN const QMessageBox::StandardButton buttonPressed = QMessageBox::question(this, tr("Old Python Runtime") - , tr("Your Python version (%1) is outdated. Minimum requirement: 3.5.0.\nDo you want to install a newer version now?") - .arg(pyInfo.version) + , tr("Your Python version (%1) is outdated. Minimum requirement: %2.\nDo you want to install a newer version now?") + .arg(pyInfo.version, QLatin1String("3.5.0")) , (QMessageBox::Yes | QMessageBox::No), QMessageBox::Yes); if (buttonPressed == QMessageBox::Yes) installPython(); #else QMessageBox::information(this, tr("Old Python Runtime") - , tr("Your Python version (%1) is outdated. Please upgrade to latest version for search engines to work.\nMinimum requirement: 3.3.0.") - .arg(pyInfo.version)); + , tr("Your Python version (%1) is outdated. Please upgrade to latest version for search engines to work.\nMinimum requirement: %2.") + .arg(pyInfo.version, QLatin1String("3.5.0"))); #endif return; }