diff options
author | Arno <arno@disconnect.de> | 2018-03-31 18:23:30 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-03-31 18:23:30 +0200 |
commit | 3ef1fdee3a8f698cea243c86f4747a4060eb1763 (patch) | |
tree | 516883fe5410cb9f7a94a2ce8cc88f16a4ec46b1 /newmoviewizard.cpp | |
parent | 8691fe4f1cae523bc2fdd64d3e90326f92fcb9d6 (diff) | |
download | SheMov-3ef1fdee3a8f698cea243c86f4747a4060eb1763.tar.gz SheMov-3ef1fdee3a8f698cea243c86f4747a4060eb1763.tar.bz2 SheMov-3ef1fdee3a8f698cea243c86f4747a4060eb1763.zip |
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.
Diffstat (limited to 'newmoviewizard.cpp')
-rw-r--r-- | newmoviewizard.cpp | 3 |
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; |