- QModelIndex currentIndex = selectionModel()->currentIndex();
- if(changedArea.contains(currentIndex))
- setTopicForIndex(currentIndex);
+ QModelIndex currentTopicIndex = selectionModel()->currentIndex().sibling(selectionModel()->currentIndex().row(), 1);
+ if(changedArea.contains(currentTopicIndex))
+ setTopic(currentTopicIndex.data().toString());