diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-04-07 02:21:44 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-04-10 12:18:18 +0200 |
commit | ef3976a6cb843f51333ea43172306a9c8f4954ef (patch) | |
tree | 032bda2a007070f9b572f78472c52c9a5f6ec538 /src/focusedwidgets.cpp | |
parent | d175607a268b6cc9dfeaeff1d0a38cf72201ad84 (diff) | |
download | basket-ef3976a6cb843f51333ea43172306a9c8f4954ef.tar.gz basket-ef3976a6cb843f51333ea43172306a9c8f4954ef.zip |
Added controlled conversions to char* instead of automatic ascii conversions.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/focusedwidgets.cpp')
-rw-r--r-- | src/focusedwidgets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/focusedwidgets.cpp b/src/focusedwidgets.cpp index 9020f69..2ab28c7 100644 --- a/src/focusedwidgets.cpp +++ b/src/focusedwidgets.cpp @@ -117,7 +117,7 @@ void FocusedTextEdit::adaptClipboardText(TQClipboard::Mode mode) if ( (textFormat() == TQt::RichText) && (!clipboard->data(mode)->provides("application/x-qrichtext")) ) { TQString text = clipboard->text(mode); - if (text) { + if (!text.isEmpty()) { text = text.replace("\n", TQChar(0x2028)); clipboard->setText(text, mode); } |