forked from qt-creator/qt-creator
Fix that menus didn't show ampersands in files names
And instead interpreted the ampersand + following character as an accelerator key. Task-number: QTCREATORBUG-17817 Change-Id: I327239499ce56e75fd12f2df5be60d4b04913acd Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include <app/app_version.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
#include <QAction>
|
||||
#include <QEvent>
|
||||
@@ -194,7 +195,7 @@ void WindowList::updateTitle(QWidget *window)
|
||||
QString title = window->windowTitle();
|
||||
if (title.endsWith(QStringLiteral("- ") + Constants::IDE_DISPLAY_NAME))
|
||||
title.chop(12);
|
||||
m_windowActions.at(index)->setText(title.trimmed());
|
||||
m_windowActions.at(index)->setText(Utils::quoteAmpersands(title.trimmed()));
|
||||
}
|
||||
|
||||
void WindowList::removeWindow(QWidget *window)
|
||||
|
||||
Reference in New Issue
Block a user