Skip to content

Commit e1f17c8

Browse files
committed
fix: taskmanager context menu should use app name instead of window title
是重构分支实现时的行为错误. PMS: BUG-335633 Log:
1 parent dc5a5cc commit e1f17c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

panels/dock/taskmanager/dockglobalelementmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ QString DockGlobalElementModel::getMenus(const QModelIndex &index) const
262262
auto row = std::get<2>(data);
263263

264264
QJsonArray menusArray;
265-
menusArray.append(QJsonObject{{"id", ""}, {"name", model == m_activeAppModel ? index.data(TaskManager::WinTitleRole).toString() : tr("Open")}});
265+
menusArray.append(QJsonObject{{"id", ""}, {"name", model == m_activeAppModel ? index.data(TaskManager::NameRole).toString() : tr("Open")}});
266266

267267
auto actions = model->index(row, 0).data(TaskManager::ActionsRole).toByteArray();
268268
for (auto action : QJsonDocument::fromJson(actions).array()) {

0 commit comments

Comments
 (0)