diff --git a/src/Train/WebPageWindow.cpp b/src/Train/WebPageWindow.cpp index 47dfb775d..ee4db4968 100644 --- a/src/Train/WebPageWindow.cpp +++ b/src/Train/WebPageWindow.cpp @@ -284,8 +284,12 @@ WebPageWindow::downloadRequested(QWebEngineDownloadRequest *item) filenames << QDir(item->downloadDirectory()).absoluteFilePath(item->downloadFileName()); // set save +#if QT_VERSION < 0x060000 connect(item, SIGNAL(downloadProgress(qint64, qint64)), this, SLOT(downloadProgress(qint64,qint64))); connect(item, SIGNAL(finished()), this, SLOT(downloadFinished())); +#else + connect(item, SIGNAL(isFinishedChanged()), this, SLOT(downloadFinished())); +#endif // kick off download item->accept(); // lets download it!