Skip to content

Commit

Permalink
[24_19] HTML: copy as html snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Oct 6, 2024
1 parent 2f5f72e commit 239b273
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Plugins/Qt/qt_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@ qt_gui_rep::set_selection (string key, tree t, string s, string sv, string sh,
md->setText (QString::fromLatin1 (selection, -1));
}
}
else md->setText (QString::fromLatin1 (selection, -1));
else {
md->setText (QString::fromUtf8 (selection, -1));
}
cb->setMimeData (md, mode);
// according to the docs, ownership of mimedata is transferred to clipboard
// so no memory leak here
Expand Down

0 comments on commit 239b273

Please sign in to comment.