mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +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
Notes:
sideshowbarker
2024-07-17 01:55:29 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/ce8f1939e9 Pull-request: https://github.com/SerenityOS/serenity/pull/18065
|
@ -335,7 +335,8 @@ BrowserWindow::BrowserWindow(Browser::CookieJar& cookie_jar, StringView webdrive
|
|||
void BrowserWindow::set_current_tab(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)
|
||||
|
|
Loading…
Reference in a new issue