Skip to content

Commit

Permalink
fix: [titlebar] The copy path is incorrect
Browse files Browse the repository at this point in the history
The url contains the query field

Log: fix bug
Bug: https://pms.uniontech.com/bug-view-217717.html
  • Loading branch information
Kakueeen authored and max-lvs committed Oct 8, 2023
1 parent c95c3e7 commit 944eb0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void CrumbBarPrivate::writeUrlToClipboard(const QUrl &url)
{
QString copyPath;
if (dfmbase::FileUtils::isLocalFile(url) || !UrlRoute::hasScheme(url.scheme())) {
copyPath = url.toString();
copyPath = url.toString(QUrl::RemoveQuery);
} else {
// why? The format of the custom scheme URL was incorrect when it was converted to a string
// eg: QUrl("recent:///") -> "recent:/"
Expand Down

0 comments on commit 944eb0f

Please sign in to comment.