Commit 50f8f430 authored by Laurent Montel's avatar Laurent Montel 😁

Reset cut action when we call another cut action. Otherwise we can set "Cut"...

Reset cut action when we call another cut action. Otherwise we can set "Cut" action on all item which will not cut
parent c1c79671
......@@ -459,18 +459,17 @@ public:
}
#ifndef QT_NO_CLIPBOARD
QAbstractItemModel *model = const_cast<QAbstractItemModel *>(selectionModel->model());
model->setData(QModelIndex(), true, EntityTreeModel::PendingCutRole);
QMimeData *mimeData = selectionModel->model()->mimeData(safeSelectedRows(selectionModel));
markCutAction(mimeData, cut);
QApplication::clipboard()->setMimeData(mimeData);
QAbstractItemModel *model = const_cast<QAbstractItemModel *>(selectionModel->model());
foreach (const QModelIndex &index, safeSelectedRows(selectionModel)) {
model->setData(index, true, EntityTreeModel::PendingCutRole);
}
#endif
}
void updateActions()
{
// collect all selected collections
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment