Prevent Quassel from crashing upon core dis- and reconnect and make the NickListWidgets
[quassel.git] / src / client / treemodel.cpp
index 5783f03..fda1df4 100644 (file)
@@ -260,4 +260,5 @@ bool TreeModel::removeRows(int row, int count, const QModelIndex &parent) {
 
 void TreeModel::clear() {
   removeRows(0, rowCount());
 
 void TreeModel::clear() {
   removeRows(0, rowCount());
+  reset();
 }
 }