mirror of
https://github.com/zealdocs/zeal.git
synced 2026-08-30 09:00:52 +08:00
Fix bug with section list staying visible
That occurred when the query text field was cleared at once.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user