diff options
author | Arno <am@disconnect.de> | 2013-03-17 10:05:26 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-03-17 10:05:26 +0100 |
commit | 4969cdba731671df80df951543dc47c4e52d70de (patch) | |
tree | 690c8dca823f52cb508c32cdd3f01cc480ed4cb4 /shemov.cpp | |
parent | 4221ce21a0c419b908529ec40b769e6e5c3fa7dc (diff) | |
download | SheMov-4969cdba731671df80df951543dc47c4e52d70de.tar.gz SheMov-4969cdba731671df80df951543dc47c4e52d70de.tar.bz2 SheMov-4969cdba731671df80df951543dc47c4e52d70de.zip |
Fix QFileSystemModel::FilePathRole usage
Make NewMovieWizard work again and fix QFileSystemModel::FilePathRole
usage. QFileSystemModel::FilePathRole -> SmDirModel::FullPathRole
Diffstat (limited to 'shemov.cpp')
-rw-r--r-- | shemov.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |