Fix crash on end of backlog (cf. BR 248)
[quassel.git] / src / client / client.cpp
index a2ffd8e..55a9df3 100644 (file)
@@ -449,6 +449,7 @@ void Client::recvMessage(const Message &msg_) {
 }
 
 void Client::receiveBacklog(BufferId bufferId, const QVariantList &msgs) {
+  if(msgs.isEmpty()) return;
   //QTime start = QTime::currentTime();
   QList<Message> msglist;
   foreach(QVariant v, msgs) {