diff options
-rw-r--r-- | filesystemwidget.cpp | 2 | ||||
-rw-r--r-- | shemov.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/filesystemwidget.cpp b/filesystemwidget.cpp index 457d903..efe5149 100644 --- a/filesystemwidget.cpp +++ b/filesystemwidget.cpp @@ -423,7 +423,7 @@ void FilesystemWidget::selectAllPV(){ QModelIndex idx = mDirView->currentIndex(); if(idx.isValid()){ QModelIndex real = mDirProxy->mapToSource(idx); - QString filePath = real.data(QFileSystemModel::FilePathRole).toString(); + QString filePath = real.data(SmDirModel::FullPathRole).toString(); mPicViewer->addFiles(filePath, true); } } @@ -58,6 +58,7 @@ #include "pictureswidget.h" #include "pictureviewer2.h" #include "helper.h" +#include "smdirmodel.h" SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, flags), mOpenWithGroupFS(0), mOpenWithGroupAV(0) { //application icon @@ -296,7 +297,7 @@ void SheMov::newMovieWizardWithFiles(){ } mNewMovieWizard->restart(); foreach(QModelIndex sel, selected){ - mNewMovieWizard->infoPage()->addFile(sel.data(QFileSystemModel::FilePathRole).toString()); + mNewMovieWizard->infoPage()->addFile(sel.data(SmDirModel::FullPathRole).toString()); } QSettings s; bool autoAddCovers = s.value("ui/autoaddcovers", false).toBool(); |