mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix newlines when copying from DatabaseWidget
This commit is contained in:
parent
db98f114f9
commit
893b398d73
@ -28,6 +28,7 @@
|
|||||||
#include <QPlainTextEdit>
|
#include <QPlainTextEdit>
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QSplitter>
|
#include <QSplitter>
|
||||||
|
#include <QTextDocumentFragment>
|
||||||
#include <QTextEdit>
|
#include <QTextEdit>
|
||||||
#include <core/Tools.h>
|
#include <core/Tools.h>
|
||||||
|
|
||||||
@ -638,7 +639,7 @@ void DatabaseWidget::copyPassword()
|
|||||||
|
|
||||||
auto textEdit = qobject_cast<QTextEdit*>(focusWidget());
|
auto textEdit = qobject_cast<QTextEdit*>(focusWidget());
|
||||||
if (textEdit && textEdit->textCursor().hasSelection()) {
|
if (textEdit && textEdit->textCursor().hasSelection()) {
|
||||||
clipboard()->setText(textEdit->textCursor().selectedText(), clearClipboard);
|
clipboard()->setText(textEdit->textCursor().selection().toPlainText(), clearClipboard);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user