Fix bug with section list staying visible

That occurred when the query text field was cleared at once.
This commit is contained in:
Oleg Shparber
2015-02-12 19:00:37 -08:00
parent 9f4748bded
commit 4d2d8db6da
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -222,8 +222,10 @@ MainWindow::MainWindow(Core::Application *app, QWidget *parent) :
m_searchState->searchQuery = text;
m_application->docsetRegistry()->search(text);
if (text.isEmpty())
if (text.isEmpty()) {
m_searchState->sectionsList->setResults();
ui->treeView->setModel(m_zealListModel);
}
});
ui->action_NewTab->setShortcut(QKeySequence::AddTab);