From afdb93e180808af02995053eb973d593a3545d55 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 14 Feb 2015 16:34:02 +0100 Subject: Center QFileDialog Center Filedialog in NewMovieWizard::infoPage when adding source files. Also switch to the directory from FSWidget. --- filesystemwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filesystemwidget.cpp') diff --git a/filesystemwidget.cpp b/filesystemwidget.cpp index ac840bd..2dd8076 100644 --- a/filesystemwidget.cpp +++ b/filesystemwidget.cpp @@ -149,6 +149,10 @@ bool FilesystemWidget::isMounted(){ return false; } +const QString FilesystemWidget::currentDir() const { + return mFileModel->dir().absolutePath(); +} + void FilesystemWidget::directoryChanged(const QModelIndex &selected, const QModelIndex &deselected){ QModelIndex real = mDirProxy->mapToSource(selected); if(!real.isValid()){ -- cgit v1.2.3-70-g09d2