summaryrefslogtreecommitdiffstats
path: root/seriestreewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'seriestreewidget.cpp')
-rw-r--r--seriestreewidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/seriestreewidget.cpp b/seriestreewidget.cpp
index 7259157..decdfa4 100644
--- a/seriestreewidget.cpp
+++ b/seriestreewidget.cpp
@@ -350,9 +350,10 @@ void SeriesTreeWidget::expandItems(const QStringList &items){
void SeriesTreeWidget::editItem(){
QModelIndex current = mView->selectionModel()->currentIndex();
- if(current.data(SeriesTreeModel::TypeRole).toInt() == SeriesTreeModel::Part){
+ QModelIndex real = mProxy->mapToSource(current);
+ if(real.data(SeriesTreeModel::TypeRole).toInt() == SeriesTreeModel::Part){
PropertiesDialog dlg(this);
- dlg.populate(current.data(SeriesTreeModel::SeriesPartIdRole).toInt());
+ dlg.populate(real.data(SeriesTreeModel::SeriesPartIdRole).toInt());
dlg.exec();
}
/*QModelIndex real = mProxy->mapToSource(current);