1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

do not change clipboard content if selected text is null

This commit is contained in:
krepa098 2015-02-07 17:39:56 +01:00
parent 719481b040
commit 2ac86b58e0

View File

@ -520,8 +520,9 @@ void ChatLog::clear()
void ChatLog::copySelectedText() const void ChatLog::copySelectedText() const
{ {
QString text = getSelectedText(); QString text = getSelectedText();
QClipboard* clipboard = QApplication::clipboard(); QClipboard* clipboard = QApplication::clipboard();
if(clipboard && !text.isNull())
clipboard->setText(text); clipboard->setText(text);
} }