fix directory scanner crash, libragephoto upstream
This commit is contained in:
parent
2d0830254b
commit
aa4b2fc080
2 changed files with 11 additions and 3 deletions
|
@ -285,8 +285,16 @@ void ProfileInterface::directoryChanged(const QString &path)
|
|||
}
|
||||
if (fileName.startsWith("PGTA5") && !fileName.endsWith(".bak")) {
|
||||
t_snapmaticPics << fileName;
|
||||
if (!snapmaticPics.contains(fileName)) {
|
||||
n_snapmaticPics << fileName;
|
||||
if (fileName.endsWith(".hidden")) {
|
||||
const QString originalFileName = fileName.left(fileName.length() - 7);
|
||||
if (!snapmaticPics.contains(fileName) && !snapmaticPics.contains(originalFileName)) {
|
||||
n_snapmaticPics << fileName;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!snapmaticPics.contains(fileName) && !snapmaticPics.contains(fileName % ".hidden")) {
|
||||
n_snapmaticPics << fileName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 4ca8ac9297c571087836aab334a55f7414870876
|
||||
Subproject commit cac7fd221f08a11e984d9b47b4383af548b388aa
|
Loading…
Reference in a new issue