|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|