X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsearchbar.cpp;h=bfa79e1e065f29e7a5c293023f02a757c795aad9;hb=da36a0b99d48fac1dfd70951ed2b4d83269fa8ce;hp=250e277a23769919c1e566a3b91018b034cf7050;hpb=e493c43cc455c1f7842f2ce90a1d0e0f72fb43c0;p=quassel.git diff --git a/src/qtui/chatviewsearchbar.cpp b/src/qtui/chatviewsearchbar.cpp index 250e277a..bfa79e1e 100644 --- a/src/qtui/chatviewsearchbar.cpp +++ b/src/qtui/chatviewsearchbar.cpp @@ -52,8 +52,11 @@ ChatViewSearchBar::ChatViewSearchBar(QWidget *parent) } void ChatViewSearchBar::setVisible(bool visible) { - QWidget::setVisible(visible); + // clearing the search field also removes the highlight items from the scene + // this should be done before the SearchBar is hidden, as the hiding triggers + // a resize event which can lead to strange side effects. ui.searchEditLine->clear(); + QWidget::setVisible(visible); if(visible) ui.searchEditLine->setFocus(); }