diff --git a/containments/desktop/plugins/folder/foldermodel.cpp b/containments/desktop/plugins/folder/foldermodel.cpp --- a/containments/desktop/plugins/folder/foldermodel.cpp +++ b/containments/desktop/plugins/folder/foldermodel.cpp @@ -154,6 +154,13 @@ * delay this via queued connection, such that the row is available and can be mapped * when we emit the move request */ + connect(this, &QAbstractItemModel::rowsAboutToBeInserted, + this, [this]() { + if (!m_dropTargetPositions.isEmpty()) { + setSortMode(-1); + } + }); + connect(this, &QAbstractItemModel::rowsInserted, this, [this](const QModelIndex &parent, int first, int last) { for (int i = first; i <= last; ++i) {