Skip to content

Commit 8f76b2e

Browse files
committed
Fold URIs with CRLF
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
1 parent 28426af commit 8f76b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/path_model.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void PathModel::multiselect(int i) {
6666
void PathModel::refresh_folded_paths() {
6767
// only add multiselected items in multiselect mode
6868
auto v = paths | std::views::filter([&](const auto &i) { return !multiselected || i.multiselect; });
69-
folded_uri_list = std::accumulate(v.cbegin(), v.cend(), QString(), [](QString s, const auto p) { return s.append(QString::fromStdString(p.get_uri()) + "\n"); });
69+
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"); });
7070
emit foldedUriListChanged(folded_uri_list);
7171
}
7272

0 commit comments

Comments
 (0)