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. --- shemov.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index c56ed58..74352b0 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -298,6 +298,7 @@ void SheMov::newMovieWizardWithFiles(){ return; } mNewMovieWizard->restart(); + mNewMovieWizard->infoPage()->setCurrentDir(mFSWidget->currentDir()); foreach(QModelIndex sel, selected){ mNewMovieWizard->infoPage()->addFile(sel.data(SmDirModel::FullPathRole).toString()); } @@ -310,6 +311,7 @@ void SheMov::newMovieWizardWithFiles(){ mNewMovieWizard->infoPage()->addFile(fi.absoluteFilePath()); } } + mNewMovieWizard->infoPage()->selectFirst(); mNewMovieWizard->show(); } -- cgit v1.2.3-70-g09d2