X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsearchbar.cpp;h=bfa79e1e065f29e7a5c293023f02a757c795aad9;hp=250e277a23769919c1e566a3b91018b034cf7050;hb=793459d97e7081a4f3db94357a55d74859571445;hpb=8c171717381424c896b9f720db203ddb815c76e1 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(); }