Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Revert keyframe selection changing layer selection
Carsten Hartenfels3713225956c7
diff --git a/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp b/plugins/dockers/animation/KisAnimTimelineFramesModel.cppindex a52d4fa4e2..9ac71c6088 100644--- a/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp+++ b/plugins/dockers/animation/KisAnimTimelineFramesModel.cpp@@ -843,12 +843,6 @@ bool KisAnimTimelineFramesModel::removeRows(int row, int count, const QModelIndereturn result;}-void KisAnimTimelineFramesModel::requestNodeChange(const QModelIndex& nodeIndex)-{- KisNodeSP node = nodeAt(nodeIndex);- Q_EMIT requestCurrentNodeChanged(node);-}-bool KisAnimTimelineFramesModel::insertOtherLayer(int index, int dstRow){Q_UNUSED(dstRow);diff --git a/plugins/dockers/animation/KisAnimTimelineFramesModel.h b/plugins/dockers/animation/KisAnimTimelineFramesModel.hindex e2ec214746..d4b485bc97 100644--- a/plugins/dockers/animation/KisAnimTimelineFramesModel.h+++ b/plugins/dockers/animation/KisAnimTimelineFramesModel.h@@ -111,8 +111,6 @@ public:bool insertRows(int row, int count, const QModelIndex &parent) override;bool removeRows(int row, int count, const QModelIndex &parent) override;- void requestNodeChange(const QModelIndex& nodeIndex);-enum ItemDataRole{ActiveLayerRole = KisTimeBasedItemModel::UserRole,diff --git a/plugins/dockers/animation/KisAnimTimelineFramesView.cpp b/plugins/dockers/animation/KisAnimTimelineFramesView.cppindex 75f88b342a..d10891e819 100644--- a/plugins/dockers/animation/KisAnimTimelineFramesView.cpp+++ b/plugins/dockers/animation/KisAnimTimelineFramesView.cpp@@ -1341,10 +1341,6 @@ void KisAnimTimelineFramesView::currentChanged(const QModelIndex ¤t, constm_d->model->setData(current, QVariant(int(SEEK_FINALIZE | SEEK_PUSH_AUDIO)), KisAnimTimelineFramesModel::ScrubToRole);}}-- if (current.row() != previous.row()) {- m_d->model->requestNodeChange(current);- }}QItemSelectionModel::SelectionFlags KisAnimTimelineFramesView::selectionCommand(const QModelIndex &index,