mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:37:45 +00:00
Ladybird/Tab: Update history title when tab title changes
This commit is contained in:
parent
a39f0d472a
commit
9854feb263
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include "BrowserWindow.h"
|
#include "BrowserWindow.h"
|
||||||
#include "History.h"
|
#include "History.h"
|
||||||
#include "Settings.h"
|
#include "Settings.h"
|
||||||
|
#include "Utilities.h"
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
#include <QFontMetrics>
|
#include <QFontMetrics>
|
||||||
|
@ -137,6 +138,7 @@ void Tab::location_edit_return_pressed()
|
||||||
void Tab::page_title_changed(QString title)
|
void Tab::page_title_changed(QString title)
|
||||||
{
|
{
|
||||||
m_title = title;
|
m_title = title;
|
||||||
|
m_history.update_title(akstring_from_qstring(m_title));
|
||||||
emit title_changed(tab_index(), std::move(title));
|
emit title_changed(tab_index(), std::move(title));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue