X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsearchcontroller.cpp;h=ba1dcf368aa74b01c24a3505e0c9d204a3b12faf;hb=27e4518c96a80eab013ca370ee5007a8210e94e5;hp=671ac72ccdfc27eaa4a1da467c6508bb8be8dbc0;hpb=6330f7fe3d19113cbf29944a9b6e8b503893d4a9;p=quassel.git diff --git a/src/qtui/chatviewsearchcontroller.cpp b/src/qtui/chatviewsearchcontroller.cpp index 671ac72c..ba1dcf36 100644 --- a/src/qtui/chatviewsearchcontroller.cpp +++ b/src/qtui/chatviewsearchcontroller.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2010 by the Quassel Project * + * Copyright (C) 2005-2012 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -61,6 +61,7 @@ void ChatViewSearchController::setSearchString(const QString &searchString) { if(_scene) { disconnect(_scene, 0, this, 0); + disconnect(Client::messageModel(), 0, this, 0); qDeleteAll(_highlightItems); _highlightItems.clear(); } @@ -71,6 +72,7 @@ void ChatViewSearchController::setSearchString(const QString &searchString) { connect(_scene, SIGNAL(destroyed()), this, SLOT(sceneDestroyed())); connect(_scene, SIGNAL(layoutChanged()), this, SLOT(repositionHighlights())); + connect(Client::messageModel(), SIGNAL(finishedBacklogFetch(BufferId)), this, SLOT(updateHighlights())); updateHighlights(); }