summaryrefslogtreecommitdiff
path: root/SampleDownloader/Directory.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:49 +0200
commit76956486fa7ef52a51d4e56df1e13a9f19a6c93c (patch)
treefe0c394439fdc167d1970372e8998874090854dd /SampleDownloader/Directory.cpp
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
parentffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff)
Update upstream source from tag 'upstream/3.3.0_beta1+dfsg'
Update to upstream version '3.3.0~beta1+dfsg' with Debian dir 85037bbb9376721108594b59b54ead82ac6924a3
Diffstat (limited to 'SampleDownloader/Directory.cpp')
-rw-r--r--SampleDownloader/Directory.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/SampleDownloader/Directory.cpp b/SampleDownloader/Directory.cpp
index 45ebe6b5..2d73928e 100644
--- a/SampleDownloader/Directory.cpp
+++ b/SampleDownloader/Directory.cpp
@@ -37,7 +37,6 @@ Directory::Directory (Configuration const * configuration
: QTreeWidget {parent}
, configuration_ {configuration}
, network_manager_ {network_manager}
- , http_only_ {false}
, root_dir_ {configuration_->save_directory ()}
, contents_ {this
, network_manager_
@@ -95,7 +94,7 @@ void Directory::error (QString const& title, QString const& message)
MessageBox::warning_message (this, title, message);
}
-bool Directory::refresh (bool http_only)
+bool Directory::refresh ()
{
abort ();
clear ();
@@ -103,7 +102,6 @@ bool Directory::refresh (bool http_only)
root_dir_ = configuration_->save_directory ();
QDir contents_dir {root_dir_.absoluteFilePath (samples_dir_name)};
contents_.local_file_path (contents_dir.absoluteFilePath (contents_file_name));
- contents_.http_only (http_only_ = http_only);
QUrl url {url_root_.resolved (QDir {root_dir_.relativeFilePath (samples_dir_name)}.filePath (contents_file_name))};
if (url.isValid ())
{
@@ -179,7 +177,7 @@ void Directory::parse_entries (QJsonArray const& entries, QDir const& dir, QTree
{
auto node = new FileNode {parent, network_manager_
, QDir {root_dir_.filePath (dir.path ())}.absoluteFilePath (name)
- , url, http_only_};
+ , url};
FileNode::sync_blocker b {node};
node->setIcon (0, file_icon_);
node->setCheckState (0, node->local () ? Qt::Checked : Qt::Unchecked);