From 957344fe0803005f0e0e607d47407f7e64130349 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 7 Jun 2014 14:23:34 +0200 Subject: Go to unpack dir after unpacking --- filesystemwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/filesystemwidget.cpp b/filesystemwidget.cpp index b8c2168..983a40d 100644 --- a/filesystemwidget.cpp +++ b/filesystemwidget.cpp @@ -498,6 +498,10 @@ void FilesystemWidget::unpack(){ } } } + QModelIndex lastIdx = mModel->index("/home/am/movs/pics/7z"); + if(lastIdx.isValid()){ + mDirView->selectionModel()->setCurrentIndex(mDirProxy->mapFromSource(lastIdx), QItemSelectionModel::ClearAndSelect); + } } void FilesystemWidget::deleteRecursive(const QFileInfo &start){ -- cgit v1.2.3-70-g09d2