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:47:05 +0200 |
commit | b51e232350d31b65a8cd055693c7869f0a896193 (patch) | |
tree | a92cf4251003376d27c8621bc5116dd980faf381 /src/focusedwidgets.cpp | |
parent | 360e269df56279904ac6f2913e8f0c3f786aa8fb (diff) | |
download | basket-b51e232350d31b65a8cd055693c7869f0a896193.tar.gz basket-b51e232350d31b65a8cd055693c7869f0a896193.zip |
Added controlled conversions to char* instead of automatic ascii conversions.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ef3976a6cb843f51333ea43172306a9c8f4954ef)
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); } |