Skip to content

Commit

Permalink
fix: session name editable
Browse files Browse the repository at this point in the history
Session should not be editable, remove EditRole from item flags.

Log: fix session name editable
Issue: linuxdeepin/developer-center#5258
  • Loading branch information
asterwyx authored and deepin-bot[bot] committed Aug 25, 2023
1 parent 0b67873 commit 3d0672b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widgets/sessionpopupwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void SessionPopupWidget::addItem(const QString &icon, const QString &itemName)
item->setFontSize(DFontSizeManager::T6);
item->setIcon(QIcon(icon));
item->setText(itemName);
item->setEditable(false);

QSize iconSize(12, 10);
auto rightAction = new DViewItemAction(Qt::AlignVCenter, iconSize, iconSize, true);
Expand Down

0 comments on commit 3d0672b

Please sign in to comment.