diff --git a/src/chatlog/chatlog.cpp b/src/chatlog/chatlog.cpp index 829b29aa9..673f6cb4e 100644 --- a/src/chatlog/chatlog.cpp +++ b/src/chatlog/chatlog.cpp @@ -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)