Skip to content

Commit

Permalink
chore: Bump version to 1.0.4 (#811)
Browse files Browse the repository at this point in the history
* fix: Crash after dragging desktop item to dock

Somehow, the index is out of boundry.

Bug: https://pms.uniontech.com/bug-view-279303.html
Log: Crash after dragging desktop item to dock

* chore: Bump version to 1.0.4

Log:
  • Loading branch information
ArchieMeng authored Oct 23, 2024
1 parent 62bc430 commit ac288da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
dde-shell (1.0.4) unstable; urgency=medium

* fix: stuck after the crash
* fix: WorkspaceItem preview image might be incorrect in screen change (#792)
* fix: plugin not show when not found in dconfig even it can not set visible
* i18n: Updates for project Deepin Desktop Environment (#743)

-- Yutao Meng <mengyutao@deepin.org> Wed, 16 Oct 2024 15:22:02 +0800

dde-shell (1.0.3) unstable; urgency=medium

* treeland protocols rename.
Expand Down
2 changes: 2 additions & 0 deletions panels/dock/taskmanager/itemmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ QVariant ItemModel::data(const QModelIndex &index, int role) const
void ItemModel::moveTo(const QString &id, int dIndex)
{
auto sItem = getItemById(id);
// FIXME: Somehow, the dIndex value can go beyond m_item.size().
dIndex = qMin(dIndex, m_items.size() - 1);
auto dItem = m_items.at(dIndex);

int sIndex = m_items.indexOf(sItem);
Expand Down

0 comments on commit ac288da

Please sign in to comment.