summaryrefslogtreecommitdiffstats
path: root/newmoviewizard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'newmoviewizard.cpp')
-rw-r--r--newmoviewizard.cpp3
1 files changed, 2 insertions, 1 deletions
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<QVariant> itemData;