Browse Source

do not change clipboard content if selected text is null

pull/974/head
krepa098 11 years ago
parent
commit
2ac86b58e0
  1. 3
      src/chatlog/chatlog.cpp

3
src/chatlog/chatlog.cpp

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

Loading…
Cancel
Save