fixed selection crashes.
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user