Ladybird/History: Ignore title updates when history has no current item

This commit is contained in:
Moustafa Raafat 2022-10-03 23:50:39 +01:00 committed by Andrew Kaster
parent 742c4767df
commit a39f0d472a

View file

@ -57,6 +57,8 @@ void History::clear()
void History::update_title(String const& title)
{
if (m_current == -1)
return;
m_items[m_current].title = title;
}