Skip to content

Commit

Permalink
fix: Add setText when writing to the clipboard, triggering the dbus s…
Browse files Browse the repository at this point in the history
…ignal of the clipboard

Add setText when writing to the clipboard, triggering the dbus signal of the clipboard

Log: Add setText when writing to the clipboard, triggering the dbus signal of the clipboard
Bug: https://pms.uniontech.com/bug-view-245689.html
  • Loading branch information
liyigang1 authored and deepin-bot[bot] committed Apr 25, 2024
1 parent 9602761 commit 0e00009
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dfm-base/utils/clipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ void ClipBoard::setCurUrlToClipboardForRemote(const QUrl &curUrl)
return;
QMimeData *mimeData = new QMimeData();
mimeData->setData(GlobalData::kRemoteAssistanceCopyKey, localPath);
mimeData->setText(curUrl.toString());
qApp->clipboard()->setMimeData(mimeData);
}
/*!
Expand Down

0 comments on commit 0e00009

Please sign in to comment.