diff --git a/debian/changelog b/debian/changelog index f7d4c750f..814c64a1d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Wed, 16 Oct 2024 15:22:02 +0800 + dde-shell (1.0.3) unstable; urgency=medium * treeland protocols rename. diff --git a/panels/dock/taskmanager/itemmodel.cpp b/panels/dock/taskmanager/itemmodel.cpp index 7c9dbd8e8..face660e9 100644 --- a/panels/dock/taskmanager/itemmodel.cpp +++ b/panels/dock/taskmanager/itemmodel.cpp @@ -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);