summaryrefslogtreecommitdiffstats
path: root/seriestreewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'seriestreewidget.cpp')
-rw-r--r--seriestreewidget.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/seriestreewidget.cpp b/seriestreewidget.cpp
index 17b9a90..7259157 100644
--- a/seriestreewidget.cpp
+++ b/seriestreewidget.cpp
@@ -44,6 +44,7 @@
#include "filestreemodel.h"
#include "helper.h"
#include "hoverwindow.h"
+#include "propertiesdialog.h"
SeriesTreeWidget::SeriesTreeWidget(QWidget *parent) : QWidget(parent){
//filter bar
@@ -349,9 +350,14 @@ void SeriesTreeWidget::expandItems(const QStringList &items){
void SeriesTreeWidget::editItem(){
QModelIndex current = mView->selectionModel()->currentIndex();
- QModelIndex real = mProxy->mapToSource(current);
+ if(current.data(SeriesTreeModel::TypeRole).toInt() == SeriesTreeModel::Part){
+ PropertiesDialog dlg(this);
+ dlg.populate(current.data(SeriesTreeModel::SeriesPartIdRole).toInt());
+ dlg.exec();
+ }
+ /*QModelIndex real = mProxy->mapToSource(current);
EditSeriesDialog dlg(real, this);
- dlg.exec();
+ dlg.exec();*/
}
void SeriesTreeWidget::producerFinished(QStringListModel *model){