X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fmessagemodel.cpp;h=818c254e8d7dba52ebfcb5d6f8778acf2d71c173;hb=ed2415135359b4f8a3f75f2634e028500c08c1fe;hp=09d8ddc87fb35daa2ccf20c97f4291a14074a26f;hpb=722557f44cb857b9467b84c87f742dce8e98a500;p=quassel.git diff --git a/src/client/messagemodel.cpp b/src/client/messagemodel.cpp index 09d8ddc8..818c254e 100644 --- a/src/client/messagemodel.cpp +++ b/src/client/messagemodel.cpp @@ -277,7 +277,8 @@ int MessageModel::insertMessagesGracefully(const QList &msglist) { } } - insertMessageGroup(grouplist); + if(!grouplist.isEmpty()) + insertMessageGroup(grouplist); return processedMsgs; }