minor fix
This commit is contained in:
parent
6ff83d602c
commit
6d40857fb9
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue