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,9 +520,10 @@ void ChatLog::clear()
|
|||
void ChatLog::copySelectedText() const
|
||||
{
|
||||
QString text = getSelectedText();
|
||||
|
||||
QClipboard* clipboard = QApplication::clipboard();
|
||||
clipboard->setText(text);
|
||||
|
||||
if(clipboard && !text.isNull())
|
||||
clipboard->setText(text);
|
||||
}
|
||||
|
||||
void ChatLog::setBusyNotification(ChatLine::Ptr notification)
|
||||
|
|
Loading…
Reference in New Issue
Block a user