From 3ef1fdee3a8f698cea243c86f4747a4060eb1763 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 31 Mar 2018 18:23:30 +0200 Subject: Implement archive movies for FSWidget Mimic the old behavior, but make the Wizard local to FSWidget. It's only called from there, so no need to make it global. --- newmoviewizard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'newmoviewizard.cpp') diff --git a/newmoviewizard.cpp b/newmoviewizard.cpp index f8c373f..c68cf42 100644 --- a/newmoviewizard.cpp +++ b/newmoviewizard.cpp @@ -516,7 +516,8 @@ void MovieInfoPage::addOld(){ void MovieInfoPage::guessOld(const QString &fullPath){ QFileInfo fi(fullPath); QString baseName = fi.completeBaseName(); - QRegularExpression fnRe(baseName); + QString fnReStr = QString("^%1").arg(baseName); + QRegularExpression fnRe(fnReStr); QModelIndex parent; QDirIterator it(fi.dir()); QList itemData; -- cgit v1.2.3-70-g09d2