mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
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:
parent
ff2a1ee8b0
commit
5ca888132d
3 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue