minor fix

This commit is contained in:
Roy Qu 2022-09-04 10:09:48 +08:00
parent 6ff83d602c
commit 6d40857fb9
1 changed files with 2 additions and 0 deletions

View File

@ -510,6 +510,8 @@ Qt::DropActions OJProblemModel::supportedDropActions() const
bool OJProblemModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
{
mMoveTargetRow=row;
if (mMoveTargetRow==-1)
mMoveTargetRow=mProblem->cases.length();
return QAbstractTableModel::dropMimeData(data,action,row,0,parent);
}