mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
Ladybird/Tab: Update history title when tab title changes
This commit is contained in:
parent
a39f0d472a
commit
9854feb263
Notes:
sideshowbarker
2024-07-17 16:23:06 +09:00
Author: https://github.com/moustafaraafat Commit: https://github.com/SerenityOS/serenity/commit/9854feb263 Pull-request: https://github.com/SerenityOS/serenity/pull/16583 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling ✅ Reviewed-by: https://github.com/linusg
@ -9,6 +9,7 @@
|
||||
#include "BrowserWindow.h"
|
||||
#include "History.h"
|
||||
#include "Settings.h"
|
||||
#include "Utilities.h"
|
||||
#include <QCoreApplication>
|
||||
#include <QFont>
|
||||
#include <QFontMetrics>
|
||||
@ -137,6 +138,7 @@ void Tab::location_edit_return_pressed()
|
||||
void Tab::page_title_changed(QString title)
|
||||
{
|
||||
m_title = title;
|
||||
m_history.update_title(akstring_from_qstring(m_title));
|
||||
emit title_changed(tab_index(), std::move(title));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user