aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index f21047f..f46ed75 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -269,7 +269,9 @@ void MainWindow::on_tab_titleChanged(const QString &title)
if(tab != nullptr) {
int index = this->ui->browser_tabs->indexOf(tab);
assert(index >= 0);
- this->ui->browser_tabs->setTabText(index, title);
+
+ QString escapedTitle = title;
+ this->ui->browser_tabs->setTabText(index, escapedTitle.replace("&", "&&"));
if (tab == this->curTab())
{