From 8f76b2e74feea8c0a0553783911cdc226fc1d126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Gro=C3=9F?= Date: Sat, 27 Jul 2024 22:25:53 +0200 Subject: [PATCH] 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 --- src/Models/path_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/path_model.cpp b/src/Models/path_model.cpp index 15c5031..a7d3acb 100644 --- a/src/Models/path_model.cpp +++ b/src/Models/path_model.cpp @@ -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); }