diff options
author | Arno <am@disconnect.de> | 2012-09-22 08:10:44 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-09-22 08:10:44 +0200 |
commit | b71d36c02bcb5c93bfaf97ccab4b1e99a44b782b (patch) | |
tree | 1015f397f805069d3eda6b8ea3832ab7c1bf3824 /mappingtreewidget.cpp | |
parent | f2b80db9c4dd18e59f8b606e113d9f15cd891c5d (diff) | |
download | SheMov-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.cpp | 2 |
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(){ |