From 457e5328c8fbbf236fb163e90d732a35a583fd2d Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 20 Mar 2013 17:10:01 +0100 Subject: Revert fix for selectAllPV 4969cdba731671df80df951543dc47c4e52d70de "fixed" QFileSystemModel::FilePathRole for that function. We're actually querying the DirModel, unfix it. --- filesystemwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filesystemwidget.cpp') 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); } } -- cgit v1.2.3-70-g09d2