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:
parent
719481b040
commit
2ac86b58e0
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user