Skip to content

Commit

Permalink
fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
notmart committed Jan 30, 2020
1 parent 6b28a6b commit 407dc6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import/sessiondatamodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ bool SessionDataModel::moveRows(const QModelIndex &sourceParent, int sourceRow,

bool SessionDataModel::removeRows(int row, int count, const QModelIndex &parent)
{
if (row <= 0 || count <= 0 || row + count > m_data.count() || parent.isValid()) {
if (row < 0 || count <= 0 || row + count > m_data.count() || parent.isValid()) {
return false;
}

Expand Down

0 comments on commit 407dc6d

Please sign in to comment.