From 6a472de1c0674be628abcf8f3630088c4d83d059 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 28 May 2017 13:22:25 +0800 Subject: [PATCH] [Browser] Remove servers before updating server list --- apps/browser/QueryHelper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/browser/QueryHelper.cpp b/apps/browser/QueryHelper.cpp index ebaee99c2..84a722b08 100644 --- a/apps/browser/QueryHelper.cpp +++ b/apps/browser/QueryHelper.cpp @@ -26,6 +26,8 @@ QueryHelper::QueryHelper(QAbstractItemModel *model) void QueryHelper::refresh() { + if(!queryThread->isRunning()) + _model->removeRows(0, _model->rowCount()); queryThread->start(); emit started(); }