HackStudio: Make FindInFilesWidget reset when opening new project

Add method to FindInFilesWidget which resets the model in order to
clear the output when needed, and use this when a new project is opened.
This commit is contained in:
Lennon Donaghy
2021-08-02 19:26:20 +01:00
committed by Andreas Kling
parent ff2a1ee8b0
commit 5ca888132d
3 changed files with 7 additions and 0 deletions

View File

@@ -148,5 +148,9 @@ void FindInFilesWidget::focus_textbox_and_select_all()
m_textbox->select_all();
m_textbox->set_focus(true);
}
void FindInFilesWidget::reset()
{
m_result_view->set_model(nullptr);
}
}