summaryrefslogtreecommitdiff
path: root/SampleDownloader
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2020-06-26 09:28:37 +0200
committerChristoph Berg <christoph.berg@credativ.de>2020-06-26 11:49:13 +0200
commit9990285acbfa40ec4478d46d9f542d227126239b (patch)
treed8f012d37c627d3d6a821bfb3be98c3e30c17718 /SampleDownloader
parent0e845413c25b8eddc8d6d701b9b6c5af29b2bde8 (diff)
New upstream version 2.2.2+repack
Diffstat (limited to 'SampleDownloader')
-rw-r--r--SampleDownloader/Directory.cpp2
-rw-r--r--SampleDownloader/RemoteFile.cpp2
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_))
{