summaryrefslogtreecommitdiffstats
path: root/mappingtreewidget.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-09-22 08:10:44 +0200
committerArno <am@disconnect.de>2012-09-22 08:10:44 +0200
commitb71d36c02bcb5c93bfaf97ccab4b1e99a44b782b (patch)
tree1015f397f805069d3eda6b8ea3832ab7c1bf3824 /mappingtreewidget.cpp
parentf2b80db9c4dd18e59f8b606e113d9f15cd891c5d (diff)
downloadSheMov-b71d36c02bcb5c93bfaf97ccab4b1e99a44b782b.tar.gz
SheMov-b71d36c02bcb5c93bfaf97ccab4b1e99a44b782b.tar.bz2
SheMov-b71d36c02bcb5c93bfaf97ccab4b1e99a44b782b.zip
MappingTreeModel Fix: Select pictures from pics_mappings2
Select pictures referencing pics_mappings2 instead of broken pics_mappings. This just fixes the selection, nothing else!
Diffstat (limited to 'mappingtreewidget.cpp')
-rw-r--r--mappingtreewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mappingtreewidget.cpp b/mappingtreewidget.cpp
index cd157a8..e4e9e76 100644
--- a/mappingtreewidget.cpp
+++ b/mappingtreewidget.cpp
@@ -220,7 +220,7 @@ void MappingTreeWidget::editChild(){
void MappingTreeWidget::selectionChanged(){
QModelIndex sel = selected();
QModelIndex real = mProxy->mapToSource(sel);
- emit mappingChanged(real.data(MappingTreeModel::IdRole).toInt());
+ emit mappingChanged(real.data(MappingTreeModel::MapParentIdRole).toInt());
}
void MappingTreeWidget::moveChild(){