Skip to content

Commit

Permalink
Fold URIs with CRLF
Browse files Browse the repository at this point in the history
This is in accordance with RFC2483, which dictates that all lines need
to be split by CRLF.

This however still needs to wait for upstream Qt changes [1], so that
the broken multi-drag mode works again.

[0] https://www.ietf.org/rfc/rfc2483.txt
[1] https://codereview.qt-project.org/c/qt/qtdeclarative/+/579204
  • Loading branch information
vimpostor committed Jul 27, 2024
1 parent 28426af commit 8f76b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/path_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void PathModel::multiselect(int i) {
void PathModel::refresh_folded_paths() {
// only add multiselected items in multiselect mode
auto v = paths | std::views::filter([&](const auto &i) { return !multiselected || i.multiselect; });
folded_uri_list = std::accumulate(v.cbegin(), v.cend(), QString(), [](QString s, const auto p) { return s.append(QString::fromStdString(p.get_uri()) + "\n"); });
folded_uri_list = std::accumulate(v.cbegin(), v.cend(), QString(), [](QString s, const auto p) { return s.append(QString::fromStdString(p.get_uri()) + "\r\n"); });
emit foldedUriListChanged(folded_uri_list);
}

Expand Down

0 comments on commit 8f76b2e

Please sign in to comment.