1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

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) void History::update_title(String const& title)
{ {
if (m_current == -1)
return;
m_items[m_current].title = title; m_items[m_current].title = title;
} }