Fixed toggleSection

This commit is contained in:
2025-09-06 11:08:07 +02:00
parent 3887748c1a
commit a9dacca684
6 changed files with 22 additions and 17 deletions

View File

@@ -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;
}