[GUI] Handle ampersand in windowTitle

This commit is contained in:
xtemp09
2025-11-21 17:46:24 +07:00
committed by Chris Hennes
parent ac88b1bc6a
commit 6437e17821
3 changed files with 12 additions and 1 deletions

View File

@@ -527,4 +527,11 @@ QString MDIView::buildWindowTitle() const
return windowTitle;
}
void MDIView::setWindowTitle(const QString& title)
{
QString newerTitle {title};
newerTitle.replace(QLatin1Char('&'), QStringLiteral("&&"));
QMainWindow::setWindowTitle(newerTitle);
}
#include "moc_MDIView.cpp"