Skip to content

Commit 0791039

Browse files
committed
#3371 webappclientservice: try to fix sending of html
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent 65f56b4 commit 0791039

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/webappclientservice.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ bool WebAppClientService::keepClipboard() {
8787

8888
_clipboardMimeType = "image/png";
8989
_clipboardContent = byteArray.toBase64();
90+
} else if (mimeData->hasHtml()) {
91+
_clipboardMimeType = "text/html";
92+
_clipboardContent = clipboard->text();
9093
} else if (mimeData->hasText()) {
9194
_clipboardMimeType = "text/plain";
9295
_clipboardContent = clipboard->text();
9396
// qDebug() << __func__ << "_clipboardContent: " << _clipboardContent;
94-
} else if (mimeData->hasHtml()) {
95-
_clipboardMimeType = "text/html";
96-
_clipboardContent = clipboard->text();
9797
} else {
9898
return false;
9999
}

0 commit comments

Comments
 (0)