summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-03-20 17:10:01 +0100
committerArno <am@disconnect.de>2013-03-20 17:10:01 +0100
commit457e5328c8fbbf236fb163e90d732a35a583fd2d (patch)
tree3a7134cf3b3ef9fc259420baf8b510ef8d12d43b
parentdc603077a93b2b24d709126200e7c5ee8c1af83b (diff)
downloadSheMov-457e5328c8fbbf236fb163e90d732a35a583fd2d.tar.gz
SheMov-457e5328c8fbbf236fb163e90d732a35a583fd2d.tar.bz2
SheMov-457e5328c8fbbf236fb163e90d732a35a583fd2d.zip
Revert fix for selectAllPV
4969cdba731671df80df951543dc47c4e52d70de "fixed" QFileSystemModel::FilePathRole for that function. We're actually querying the DirModel, unfix it.
-rw-r--r--filesystemwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/filesystemwidget.cpp b/filesystemwidget.cpp
index e2dc9ef..4b7a9c7 100644
--- a/filesystemwidget.cpp
+++ b/filesystemwidget.cpp
@@ -411,7 +411,7 @@ void FilesystemWidget::selectAllPV(){
QModelIndex idx = mDirView->currentIndex();
if(idx.isValid()){
QModelIndex real = mDirProxy->mapToSource(idx);
- QString filePath = real.data(SmDirModel::FullPathRole).toString();
+ QString filePath = real.data(QFileSystemModel::FilePathRole).toString();
mPicViewer->addFiles(filePath, true);
}
}