Prevent crashing from empty PART reason qmlfrontend
authorunc0rr
Mon, 30 Nov 2015 23:43:19 +0300
branchqmlfrontend
changeset 11440 28fb618d99c4
parent 11439 23912c93935a
child 11441 f7fa429e42ab
Prevent crashing from empty PART reason
qmlFrontend/hwengine.cpp
--- a/qmlFrontend/hwengine.cpp	Mon Nov 30 23:25:18 2015 +0300
+++ b/qmlFrontend/hwengine.cpp	Mon Nov 30 23:43:19 2015 +0300
@@ -220,6 +220,8 @@
     }
     case MSG_REMOVEROOMCLIENT: {
         QStringList l = QString::fromUtf8(msg).split('\n');
+        if(l.size() < 2)
+            l.append("");
         emit roomClientRemoved(l[0], l[1]);
         break;
     }