summaryrefslogtreecommitdiffstats
path: root/src/focusedwidgets.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-04-07 02:21:44 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-04-10 12:18:18 +0200
commitef3976a6cb843f51333ea43172306a9c8f4954ef (patch)
tree032bda2a007070f9b572f78472c52c9a5f6ec538 /src/focusedwidgets.cpp
parentd175607a268b6cc9dfeaeff1d0a38cf72201ad84 (diff)
downloadbasket-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.cpp2
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);
}