Fixed toggleSection
This commit is contained in:
@@ -172,9 +172,9 @@ int XQSectionManager::lastRow(const XQModelSection& section ) const
|
||||
{
|
||||
// last section? return last row of model
|
||||
if (index == _sections.size() - 1)
|
||||
return section.startIndex().model()->rowCount() - 1;
|
||||
return section.startIndex().model()->rowCount();// - 1;
|
||||
// return row above the row of the next section -> last row of given section
|
||||
return _sections.at(index+1).firstRow() - 1;
|
||||
return _sections.at(index+1).firstRow();// - 1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user