mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-03 06:35:20 +00:00
Ladybird/History: Ignore title updates when history has no current item
This commit is contained in:
parent
742c4767df
commit
a39f0d472a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue