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 09:28:37 +0200
commit28f34ff4908a90b1a7323b2988c33cdb1779fa06 (patch)
tree441994b458ea44a1c1019a365d4ec379c34da04f /SampleDownloader
parentee0e1a654b7e64accea78a5aa66ec1e62bd352c8 (diff)
New upstream version 2.2.2+repackupstream/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_))
{