mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
Ladybird: Don't update the zoom menu text for null tabs
This fixes an "Assertion `m_zoom_menu && m_current_tab' failed." error when closing a window.
This commit is contained in:
parent
0471ec0567
commit
ce8f1939e9
1 changed files with 2 additions and 1 deletions
|
@ -335,7 +335,8 @@ BrowserWindow::BrowserWindow(Browser::CookieJar& cookie_jar, StringView webdrive
|
||||||
void BrowserWindow::set_current_tab(Tab* tab)
|
void BrowserWindow::set_current_tab(Tab* tab)
|
||||||
{
|
{
|
||||||
m_current_tab = tab;
|
m_current_tab = tab;
|
||||||
update_zoom_menu_text();
|
if (tab)
|
||||||
|
update_zoom_menu_text();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BrowserWindow::debug_request(DeprecatedString const& request, DeprecatedString const& argument)
|
void BrowserWindow::debug_request(DeprecatedString const& request, DeprecatedString const& argument)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue