|
|
|
@ -1775,6 +1775,7 @@ void MainWindow::on_actionSearchWidget_triggered()
@@ -1775,6 +1775,7 @@ 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: 2.7.9 / 3.3.0.\nDo you want to install a newer version now?") |
|
|
|
|
.arg(pyInfo.version) |
|
|
|
|
, (QMessageBox::Yes | QMessageBox::No), QMessageBox::Yes); |
|
|
|
|
if (buttonPressed == QMessageBox::Yes) |
|
|
|
|
installPython(); |
|
|
|
@ -2011,9 +2012,9 @@ void MainWindow::installPython()
@@ -2011,9 +2012,9 @@ void MainWindow::installPython()
|
|
|
|
|
setCursor(QCursor(Qt::WaitCursor)); |
|
|
|
|
// Download python
|
|
|
|
|
#ifdef QBT_APP_64BIT |
|
|
|
|
const QString installerURL = "https://www.python.org/ftp/python/3.7.4/python-3.7.4-amd64.exe"; |
|
|
|
|
const QString installerURL = "https://www.python.org/ftp/python/3.8.1/python-3.8.1-amd64.exe"; |
|
|
|
|
#else |
|
|
|
|
const QString installerURL = "https://www.python.org/ftp/python/3.7.4/python-3.7.4.exe"; |
|
|
|
|
const QString installerURL = "https://www.python.org/ftp/python/3.8.1/python-3.8.1.exe"; |
|
|
|
|
#endif |
|
|
|
|
Net::DownloadManager::instance()->download( |
|
|
|
|
Net::DownloadRequest(installerURL).saveToFile(true) |
|
|
|
|