mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Implement stringable interface for Version
type
This commit is contained in:
parent
c6b772da11
commit
7c1a986e61
7 changed files with 12 additions and 11 deletions
|
@ -1892,14 +1892,14 @@ 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.\nDo you want to install a newer version now?")
|
||||
.arg(pyInfo.version, QLatin1String("3.5.0"))
|
||||
.arg(pyInfo.version.toString(), u"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: %2.")
|
||||
.arg(pyInfo.version, QLatin1String("3.5.0")));
|
||||
.arg(pyInfo.version.toString(), u"3.5.0"));
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue