X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Ftreemodel.cpp;h=fda1df4de1ca8f924f116559c966291a789ca197;hp=bee4cfaffe2c8ed11a596d3d162ddcfdef14a921;hb=36b2b9680ff608f41c681b8c23865abb06a2464c;hpb=6250a7e25eb2c0a6794d4aa5679c70082d825031 diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp index bee4cfaf..fda1df4d 100644 --- a/src/client/treemodel.cpp +++ b/src/client/treemodel.cpp @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005-07 by The Quassel Team * + * Copyright (C) 2005-07 by the Quassel IRC Team * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -18,7 +18,6 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include "global.h" #include "treemodel.h" /***************************************** @@ -261,4 +260,5 @@ bool TreeModel::removeRows(int row, int count, const QModelIndex &parent) { void TreeModel::clear() { removeRows(0, rowCount()); + reset(); }