fixed selection crashes.
This commit is contained in:
@@ -127,12 +127,6 @@ const XQModelSection& XQSectionManager::sectionByKey( const QString& sectionKey
|
||||
|
||||
const XQModelSection& XQSectionManager::sectionByRow(int itemRow ) const
|
||||
{
|
||||
/*
|
||||
for( const XQModelSection& section : _sections )
|
||||
{
|
||||
qDebug() << " --- sectionByRow: " <<section.startIndex().data().toString() << ": " << lastRow(section);
|
||||
}
|
||||
*/
|
||||
|
||||
// wir gehen rückwärts, weil wir da nur einen vergleich brauchen
|
||||
// und uns den test mit lastRow() sparen können.
|
||||
@@ -151,7 +145,7 @@ const XQModelSection& XQSectionManager::sectionByRow(int itemRow ) const
|
||||
const XQModelSection& XQSectionManager::createSection(const QModelIndex& modelIndex, XQNodePtr sheetNode)
|
||||
{
|
||||
const QString& sectionKey = sheetNode->attribute(c_ContentType);
|
||||
qDebug() << " --- create Section: " << sectionKey << ": " << modelIndex.data().toString();
|
||||
//qDebug() << " --- create Section: " << sectionKey << ": " << modelIndex.data().toString();
|
||||
XQModelSection section(modelIndex, sheetNode );
|
||||
_sections.addAtKey( sectionKey, section);
|
||||
return sectionByKey(sectionKey);
|
||||
|
Reference in New Issue
Block a user