diff options
Diffstat (limited to 'SampleDownloader')
| -rw-r--r-- | SampleDownloader/Directory.cpp | 2 | ||||
| -rw-r--r-- | SampleDownloader/RemoteFile.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/SampleDownloader/Directory.cpp b/SampleDownloader/Directory.cpp index 3c750442..19169e11 100644 --- a/SampleDownloader/Directory.cpp +++ b/SampleDownloader/Directory.cpp @@ -48,7 +48,7 @@ Directory::Directory (Configuration const * configuration file_icon_.addPixmap (style ()->standardPixmap (QStyle::SP_FileIcon)); setColumnCount (2); - setHeaderLabels ({"File", "Progress"}); + setHeaderLabels ({tr ("File"), tr ("Progress")}); header ()->setSectionResizeMode (QHeaderView::ResizeToContents); setItemDelegate (&item_delegate_); diff --git a/SampleDownloader/RemoteFile.cpp b/SampleDownloader/RemoteFile.cpp index e5b4d2cd..72d1ddbd 100644 --- a/SampleDownloader/RemoteFile.cpp +++ b/SampleDownloader/RemoteFile.cpp @@ -121,10 +121,12 @@ bool RemoteFile::sync (QUrl const& url, bool local, bool force) void RemoteFile::download (QUrl url) { +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) if (QNetworkAccessManager::Accessible != network_manager_->networkAccessible ()) { // try and recover network access for QNAM network_manager_->setNetworkAccessible (QNetworkAccessManager::Accessible); } +#endif if (url.isValid () && (!QSslSocket::supportsSsl () || http_only_)) { |
