mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
Ladybird/History: Ignore title updates when history has no current item
This commit is contained in:
parent
742c4767df
commit
a39f0d472a
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue