Commit ec1ee323 authored by Laurent Montel's avatar Laurent Montel 😁

Fix commit

parent 50f8f430
...@@ -460,8 +460,8 @@ public: ...@@ -460,8 +460,8 @@ public:
#ifndef QT_NO_CLIPBOARD #ifndef QT_NO_CLIPBOARD
QAbstractItemModel *model = const_cast<QAbstractItemModel *>(selectionModel->model()); QAbstractItemModel *model = const_cast<QAbstractItemModel *>(selectionModel->model());
model->setData(QModelIndex(), true, EntityTreeModel::PendingCutRole);
QMimeData *mimeData = selectionModel->model()->mimeData(safeSelectedRows(selectionModel)); QMimeData *mimeData = selectionModel->model()->mimeData(safeSelectedRows(selectionModel));
model->setData(QModelIndex(), false, EntityTreeModel::PendingCutRole);
markCutAction(mimeData, cut); markCutAction(mimeData, cut);
QApplication::clipboard()->setMimeData(mimeData); QApplication::clipboard()->setMimeData(mimeData);
......
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