fixed selection crashes.

This commit is contained in:
2025-09-06 16:06:47 +02:00
parent 89c671295f
commit 0fe15d6043
5 changed files with 39 additions and 28 deletions

View File

@@ -39,6 +39,13 @@ void showItemList( const XQItemList& list)
qDebug();
}
void showSelectionList( const QModelIndexList& list)
{
for(const auto& entry : list )
qDebug() << " --- SelectionList: " << entry.data().toString();
qDebug();
}
//! Konstruktor mit parent.
@@ -252,6 +259,9 @@ void XQViewModel::onActionTriggered(QAction* action)
QModelIndex currentIndex = treeTable()->currentIndex();
command->setOriginIndex(currentIndex);
// store the row positions of the selected indices
qDebug() << " --- Before saveNode: " << selectionList.isEmpty();
showSelectionList(selectionList);
command->saveNodes( selectionList );