mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Andreas Kling
parent
ff2a1ee8b0
commit
5ca888132d
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user