mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-07 06:27:39 +03:00
Fix newlines when copying from DatabaseWidget
This commit is contained in:
parent
c6d4fd6d31
commit
245dccf91c
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue